diff options
author | Sascha Andres <sascha.andres@outlook.com> | 2018-09-10 06:51:19 +0200 |
---|---|---|
committer | Sascha Andres <sascha.andres@outlook.com> | 2018-09-10 06:51:19 +0200 |
commit | ba0cc20e228df324530f3ac6075a591dbae35bb9 (patch) | |
tree | ba9893b444ac37c0ab2ceaa060a775e00a1c30c3 /pkg/commands/os.go | |
parent | 717913e64c36fa5f468ac32c619afd6e3643a532 (diff) |
feat: add test cases
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r-- | pkg/commands/os.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index fd77f21c7..af0c1be8b 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -2,6 +2,7 @@ package commands import ( "errors" + "fmt" "os" "os/exec" "strings" @@ -139,6 +140,7 @@ func (c *OSCommand) PrepareSubProcess(cmdName string, commandArgs ...string) *ex // Quote wraps a message in platform-specific quotation marks func (c *OSCommand) Quote(message string) string { + fmt.Println(c.Platform.os) message = strings.Replace(message, "`", "\\`", -1) if c.Platform.os == "linux" { if strings.ContainsRune(message, '\'') { |