add 'shellopts' option to set shell arguments

Related #102
This commit is contained in:
Gokcehan committed 2018-06-26 21:14:55 +03:00
1 parent 4c54acebeb
commit e99478e8a1
7 files changed
+12

No files matched your search

+3
View File
@@ -39,6 +39,9 @@ func pauseCommand() *exec.Cmd {
func shellCommand(s string, args []string) *exec.Cmd {
args = append([]string{"/c", s}, args...)
args = append(gOpts.shellopts, args...)
return exec.Command(gOpts.shell, args...)
}