Skip to content

Commit fa4813c

Browse files
committed
exclusion list in array
1 parent 41ec050 commit fa4813c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/v-add-backup-host

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ if [ "$type" != 'local' ];then
9898
is_password_valid
9999
if [ "$type" = 'sftp' ]; then
100100
which expect >/dev/null 2>&1
101-
if [ $? -ne 0 ];then
102-
echo "Error: expect utility not found"
103-
log_event "$E_NOTEXIST" "$EVENT"
104-
exit $E_NOTEXIST
105-
fi
101+
check_result $? "expect command not found" $E_NOTEXIST
106102
fi
107103
fi
108104

0 commit comments

Comments
 (0)