engine: resources: exec: Use WatchShell in Exec resource when needed instead of Shell
This commit is contained in:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user