mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
use a specific path for just the cmd._run call
This commit is contained in:
parent
62c66ba489
commit
391bb8a411
1 changed files with 3 additions and 3 deletions
|
@ -2128,11 +2128,11 @@ def script(source,
|
|||
os.chown(path, __salt__['file.user_to_uid'](runas), -1)
|
||||
|
||||
if salt.utils.is_windows() and shell.lower() != 'powershell':
|
||||
path = _cmd_quote(path, escape=False)
|
||||
cmd_path = _cmd_quote(path, escape=False)
|
||||
else:
|
||||
path = _cmd_quote(path)
|
||||
cmd_path = _cmd_quote(path)
|
||||
|
||||
ret = _run(path + ' ' + str(args) if args else path,
|
||||
ret = _run(cmd_path + ' ' + str(args) if args else cmd_path,
|
||||
cwd=cwd,
|
||||
stdin=stdin,
|
||||
output_loglevel=output_loglevel,
|
||||
|
|
Loading…
Add table
Reference in a new issue