Ver Fonte

Additional argument check for remote hosts

Serghey Rodin há 7 anos atrás
pai
commit
cbbf27fc46
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      bin/v-add-backup-host

+ 1 - 1
bin/v-add-backup-host

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