#!/bin/bash
# Copyright (c) 2023. Huawei Technologies Co.,Ltd.ALL rights reserved.
# This program is licensed under Mulan PSL v2.
# You can use it according to the terms and conditions of the Mulan PSL v2.
# http://license.coscl.org.cn/MulanPSL2
# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# #############################################
# @Author : hekeming
# @Contact : hk16897@126.com
# @Date : 2023/07/03
# @License : Mulan PSL v2
# @Desc : Test SSH link
# ############################################
app_dir=$(cd "$(dirname "$0")"||exit 1;pwd)
expect <<EOF
set timeout 600
spawn bash ${app_dir}/${1}/bin/deploy/uninstall.sh
expect {
"please input 'yes' to confirm" { send "yes\r";exp_continue }
"Are You Sure To Uninstall? " { send "Y\r";exp_continue }
"Type 'yes' to continue." { send "yes\r";exp_continue }
}
EOF