diff options
author | mjarkk <mkopenga@gmail.com> | 2018-11-14 11:40:32 +0100 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2018-11-14 11:40:32 +0100 |
commit | 448d9caf1bca747a9d828456ac3e8e7dde0a3df2 (patch) | |
tree | 6ecb54104c8a5222c093b119ec4f5e6897ed7e6c /pkg/commands/os.go | |
parent | 6d2bf0b0b52f390cfaff2388b2b13d99f3b6fdc3 (diff) |
Fixed typo
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r-- | pkg/commands/os.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index eaa1581d4..f64f0732e 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -85,9 +85,9 @@ func (c *OSCommand) DetectUnamePass(command string, ask func(string) string) err }, } - for askFor, propmt := range prompts { - if match, _ := regexp.MatchString(propmt.pattern, ttyText); match && propmt.canAskFor { - propmt.canAskFor = false + for askFor, prompt := range prompts { + if match, _ := regexp.MatchString(prompt.pattern, ttyText); match && prompt.canAskFor { + prompt.canAskFor = false ttyText = "" return ask(askFor) } |