mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
Additional argument check for remote hosts
This commit is contained in:
parent
9a0bbbfd45
commit
cbbf27fc46
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ EOF
|
|||
|
||||
if [ "$type" != 'local' ];then
|
||||
check_args '4' "$#" "TYPE HOST USERNAME PASSWORD [PATH] [PORT]"
|
||||
is_format_valid 'user' 'host'
|
||||
is_format_valid 'user' 'host' 'path' 'port'
|
||||
is_password_valid
|
||||
if [ "$type" = 'sftp' ]; then
|
||||
which expect >/dev/null 2>&1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue