mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Checking for scp existance.
Using command -v should be POSIX
This commit is contained in:
parent
6b2100a30b
commit
25f8042e41
@ -133,6 +133,10 @@ def main(argv): # pylint: disable=W0613
|
||||
unpack_thin(thin_path)
|
||||
# Salt thin now is available to use
|
||||
else:
|
||||
scpstat = subprocess.Popen(["command", "-v", "scp"])
|
||||
if not scpstat.returncode = 0
|
||||
sys.exit(EX_SCP_NOT_FOUND)
|
||||
|
||||
if not os.path.exists(OPTIONS.saltdir):
|
||||
need_deployment()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user