Checking for scp existance.

Using command -v should be POSIX
This commit is contained in:
Sam Norbury 2015-07-30 13:43:15 +02:00 committed by rallytime
parent 6b2100a30b
commit 25f8042e41

View File

@ -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()