mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Checking for scp existance.
Using command -v should be POSIX
This commit is contained in:
parent
6b2100a30b
commit
25f8042e41
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue