We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41ec050 commit fa4813cCopy full SHA for fa4813c
bin/v-add-backup-host
@@ -98,11 +98,7 @@ if [ "$type" != 'local' ];then
98
is_password_valid
99
if [ "$type" = 'sftp' ]; then
100
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
+ check_result $? "expect command not found" $E_NOTEXIST
106
fi
107
108
0 commit comments