|
@@ -94,7 +94,7 @@ EOF
|
|
|
|
|
|
|
|
if [ "$type" != 'local' ];then
|
|
if [ "$type" != 'local' ];then
|
|
|
check_args '4' "$#" "TYPE HOST USERNAME PASSWORD [PATH] [PORT]"
|
|
check_args '4' "$#" "TYPE HOST USERNAME PASSWORD [PATH] [PORT]"
|
|
|
- is_format_valid 'user' 'host'
|
|
|
|
|
|
|
+ is_format_valid 'user' 'host' 'path' 'port'
|
|
|
is_password_valid
|
|
is_password_valid
|
|
|
if [ "$type" = 'sftp' ]; then
|
|
if [ "$type" = 'sftp' ]; then
|
|
|
which expect >/dev/null 2>&1
|
|
which expect >/dev/null 2>&1
|