From fa4813cf89aa7d24c3d656e3f96fd87c7ab6c9ef Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 28 Oct 2015 16:32:20 +0200 Subject: [PATCH] exclusion list in array --- bin/v-add-backup-host | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/v-add-backup-host b/bin/v-add-backup-host index 7cf08fe3..00fcfecc 100755 --- a/bin/v-add-backup-host +++ b/bin/v-add-backup-host @@ -98,11 +98,7 @@ if [ "$type" != 'local' ];then is_password_valid if [ "$type" = 'sftp' ]; then which expect >/dev/null 2>&1 - if [ $? -ne 0 ];then - echo "Error: expect utility not found" - log_event "$E_NOTEXIST" "$EVENT" - exit $E_NOTEXIST - fi + check_result $? "expect command not found" $E_NOTEXIST fi fi