feat(脚本): 添加删除、添加端口后重新进入菜单

pull/534/merge
mack-a 2022-12-29 11:23:52 +08:00
parent e9f4d0d6dd
commit 4ec2f7c179
1 changed files with 2 additions and 0 deletions

View File

@ -3636,6 +3636,7 @@ EOF
echoContent green " ---> 添加成功" echoContent green " ---> 添加成功"
reloadCore reloadCore
addCorePort
fi fi
elif [[ "${selectNewPortType}" == "2" ]]; then elif [[ "${selectNewPortType}" == "2" ]]; then
@ -3646,6 +3647,7 @@ EOF
if [[ -n "${dokoConfig}" ]]; then if [[ -n "${dokoConfig}" ]]; then
rm "${configPath}/$(echo "${dokoConfig}" | awk -F "[:]" '{print $2}')" rm "${configPath}/$(echo "${dokoConfig}" | awk -F "[:]" '{print $2}')"
reloadCore reloadCore
addCorePort
else else
echoContent yellow "\n ---> 编号输入错误,请重新选择" echoContent yellow "\n ---> 编号输入错误,请重新选择"
addCorePort addCorePort