summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os.go
diff options
context:
space:
mode:
authormjarkk <mkopenga@gmail.com>2018-11-02 09:54:54 +0100
committermjarkk <mkopenga@gmail.com>2018-11-02 09:54:54 +0100
commit5470bb41211f149aebc6127119585ede927f5913 (patch)
tree02a489378fe1825b764a080037cb0fecd630caed /pkg/commands/os.go
parent0e53a26d6fd1674f86f9ca3352544eee2f1f3326 (diff)
Added username password detect to git pull
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r--pkg/commands/os.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index dca0c8eae..8a36d9851 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -87,9 +87,8 @@ func (c *OSCommand) DetectUnamePass(command string, ask func(string) string) err
return ""
})
if err != nil {
- errorCode := err.Error()
- if errorCode == "exit status 128" {
- errMessage = errorCode
+ if errorCode := err.Error(); strings.Contains("exit status 128", errorCode) {
+ errMessage = "exit status 128"
}
return errors.New(errMessage)
}