Skip to content

Commit a656ac8

Browse files
committed
Fix bug in v-add-backup-host
Wrong order is_type_valid validation for type
1 parent 246045c commit a656ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-backup-host

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ EOF
104104
if [ "$type" != 'local' ];then
105105
check_args '4' "$#" "TYPE HOST USERNAME PASSWORD [PATH] [PORT]"
106106
is_format_valid 'host' 'path' 'port'
107-
is_type_valid "$type" 'sftp,ftp,b2'
107+
is_type_valid 'sftp,ftp,b2' "$type"
108108
is_username_format_valid "$user" "username"
109109
is_password_valid
110110
format_no_quotes "$password" "password"

0 commit comments

Comments
 (0)