alterid 仅数字 输入提示

pull/355/head
wulabing 2019-11-25 23:57:26 +08:00
parent e664d55860
commit 61aca1d675
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ basic_optimization(){
port_alterid_set(){ port_alterid_set(){
read -p "请输入连接端口default:443:" port read -p "请输入连接端口default:443:" port
[[ -z ${port} ]] && port="443" [[ -z ${port} ]] && port="443"
read -p "请输入alterIDdefault:2:" alterID read -p "请输入alterIDdefault:2 仅允许填数字:" alterID
[[ -z ${alterID} ]] && alterID="2" [[ -z ${alterID} ]] && alterID="2"
} }
modify_port_UUID(){ modify_port_UUID(){

View File

@ -177,7 +177,7 @@ dependency_install(){
port_alterid_set(){ port_alterid_set(){
stty erase '^H' && read -p "请输入连接端口default:443:" port stty erase '^H' && read -p "请输入连接端口default:443:" port
[[ -z ${port} ]] && port="443" [[ -z ${port} ]] && port="443"
stty erase '^H' && read -p "请输入alterIDdefault:2:" alterID stty erase '^H' && read -p "请输入alterIDdefault:2 仅允许填数字:" alterID
[[ -z ${alterID} ]] && alterID="2" [[ -z ${alterID} ]] && alterID="2"
} }