make sure we lower the check on shell

This commit is contained in:
Ch3LL 2018-08-01 14:22:04 -04:00
parent 9312a993a5
commit 62c66ba489
No known key found for this signature in database
GPG Key ID: 132B55A7C13EFA73

View File

@ -2127,7 +2127,7 @@ def script(source,
os.chmod(path, 320)
os.chown(path, __salt__['file.user_to_uid'](runas), -1)
if salt.utils.is_windows() and shell != 'powershell':
if salt.utils.is_windows() and shell.lower() != 'powershell':
path = _cmd_quote(path, escape=False)
else:
path = _cmd_quote(path)