From cbbf27fc46e46cf79cbceec8cd1feaaac1be1cc0 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 18 Oct 2018 14:36:17 +0300 Subject: [PATCH] Additional argument check for remote hosts --- bin/v-add-backup-host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-add-backup-host b/bin/v-add-backup-host index b21880c5..4e727229 100755 --- a/bin/v-add-backup-host +++ b/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