Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ confirm() {
}

confirm_restart() {
confirm "是否重启面板,重启面板也会重启 xray" "y"
confirm "是否重启面板,重启面板也会重启 xray。是y,否n" "y"
if [[ $? == 0 ]]; then
restart
else
Expand All @@ -73,7 +73,7 @@ before_show_menu() {
}

update() {
confirm "本功能会强制重装当前最新版,数据不会丢失,是否继续?" "n"
confirm "本功能会强制重装当前最新版,数据不会丢失,是否继续?是y,否n" "n"
if [[ $? != 0 ]]; then
LOGE "已取消"
if [[ $# == 0 ]]; then
Expand Down Expand Up @@ -140,7 +140,7 @@ install() {
}

uninstall() {
confirm "确定要卸载面板吗,xray 也会卸载?" "n"
confirm "确定要卸载面板吗,xray 也会卸载?是y,否n" "n"
if [[ $? != 0 ]]; then
if [[ $# == 0 ]]; then
show_menu
Expand All @@ -165,7 +165,7 @@ uninstall() {
}

reset_user() {
confirm "确定要将用户名和密码重置为 admin 吗" "n"
confirm "确定要将用户名和密码重置为 admin 吗?是y,否n" "n"
if [[ $? != 0 ]]; then
if [[ $# == 0 ]]; then
show_menu
Expand All @@ -178,7 +178,7 @@ reset_user() {
}

reset_config() {
confirm "确定要重置所有面板设置吗,账号数据不会丢失,用户名和密码不会改变" "n"
confirm "确定要重置所有面板设置吗,账号数据不会丢失,用户名和密码不会改变。是y,否n" "n"
if [[ $? != 0 ]]; then
if [[ $# == 0 ]]; then
show_menu
Expand Down