Browse Source

Additional argument check for remote hosts

Serghey Rodin 7 năm trước cách đây
mục cha
commit
cbbf27fc46
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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