瀏覽代碼

exclusion list in array

Serghey Rodin 10 年之前
父節點
當前提交
fa4813cf89
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      bin/v-add-backup-host

+ 1 - 5
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