Skip to content

Commit cbbf27f

Browse files
author
Serghey Rodin
committed
Additional argument check for remote hosts
1 parent 9a0bbbf commit cbbf27f

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
@@ -94,7 +94,7 @@ EOF
9494

9595
if [ "$type" != 'local' ];then
9696
check_args '4' "$#" "TYPE HOST USERNAME PASSWORD [PATH] [PORT]"
97-
is_format_valid 'user' 'host'
97+
is_format_valid 'user' 'host' 'path' 'port'
9898
is_password_valid
9999
if [ "$type" = 'sftp' ]; then
100100
which expect >/dev/null 2>&1

0 commit comments

Comments
 (0)