Skip to content

Commit 19eb9ef

Browse files
committed
优化交互打印
1 parent 1e0f933 commit 19eb9ef

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ChangeMirrors.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,8 @@ function interactive_select_mirror() {
25592559
tput rc
25602560
tput cnorm
25612561
tput rmcup
2562-
exit
2562+
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
2563+
exit 130
25632564
}
25642565
function draw_menu() {
25652566
tput clear
@@ -2649,7 +2650,8 @@ function interactive_select_boolean() {
26492650
function cleanup() {
26502651
clear_menu
26512652
tput cnorm
2652-
exit
2653+
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
2654+
exit 130
26532655
}
26542656
function draw_menu() {
26552657
# 绘制菜单不改变光标位置

DockerInstallation.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,8 @@ function interactive_select_mirror() {
11111111
tput rc
11121112
tput cnorm
11131113
tput rmcup
1114-
exit
1114+
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
1115+
exit 130
11151116
}
11161117
function draw_menu() {
11171118
tput clear
@@ -1201,7 +1202,8 @@ function interactive_select_boolean() {
12011202
function cleanup() {
12021203
clear_menu
12031204
tput cnorm
1204-
exit
1205+
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
1206+
exit 130
12051207
}
12061208
function draw_menu() {
12071209
# 绘制菜单不改变光标位置

0 commit comments

Comments
 (0)