mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
/bin/sh is more portable than /bin/bash
This commit is contained in:
parent
2cd36c7ed4
commit
6f8bed88cb
@ -134,7 +134,7 @@ def main(argv): # pylint: disable=W0613
|
|||||||
unpack_thin(thin_path)
|
unpack_thin(thin_path)
|
||||||
# Salt thin now is available to use
|
# Salt thin now is available to use
|
||||||
else:
|
else:
|
||||||
scpstat = subprocess.Popen(['/bin/bash', '-c', 'command -v scp']).wait()
|
scpstat = subprocess.Popen(['/bin/sh', '-c', 'command -v scp']).wait()
|
||||||
if not scpstat == 0:
|
if not scpstat == 0:
|
||||||
sys.exit(EX_SCP_NOT_FOUND)
|
sys.exit(EX_SCP_NOT_FOUND)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user