diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index d7789d4..2f6c044 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -2559,7 +2559,8 @@ function interactive_select_mirror() { tput rc tput cnorm tput rmcup - exit + echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n" + exit 130 } function draw_menu() { tput clear @@ -2649,7 +2650,8 @@ function interactive_select_boolean() { function cleanup() { clear_menu tput cnorm - exit + echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n" + exit 130 } function draw_menu() { # 绘制菜单不改变光标位置 diff --git a/DockerInstallation.sh b/DockerInstallation.sh index 890fd95..70eb6fb 100755 --- a/DockerInstallation.sh +++ b/DockerInstallation.sh @@ -1111,7 +1111,8 @@ function interactive_select_mirror() { tput rc tput cnorm tput rmcup - exit + echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n" + exit 130 } function draw_menu() { tput clear @@ -1201,7 +1202,8 @@ function interactive_select_boolean() { function cleanup() { clear_menu tput cnorm - exit + echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n" + exit 130 } function draw_menu() { # 绘制菜单不改变光标位置