engine: resources: exec: Use WatchShell in Exec resource when needed instead of Shell

This commit is contained in:
Vincent Membré
2019-01-02 11:27:07 +01:00
parent e3eefeb3fe
commit 7d6080d13f

View File

@@ -118,7 +118,7 @@ func (obj *ExecRes) Watch() error {
//cmdName = path.Join(d, cmdName)
cmdArgs = split[1:]
} else {
cmdName = obj.Shell // usually bash, or sh
cmdName = obj.WatchShell // usually bash, or sh
cmdArgs = []string{"-c", obj.WatchCmd}
}
cmd := exec.Command(cmdName, cmdArgs...)