Merge pull request #1097 from sofia-riese/patch-6

fix: solve recursion problem and improve the execution logic order
This commit is contained in:
juewuy
2026-01-09 08:23:45 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -109,8 +109,8 @@ ckstatus() { #脚本启动前检查
echo "-----------------------------------------------"
#检查新手引导
if [ -z "$userguide" ]; then
. "$CRASHDIR"/menus/userguide.sh && userguide
setconfig userguide 1
. "$CRASHDIR"/menus/userguide.sh && userguide
fi
#检查执行权限
[ ! -x "$CRASHDIR"/start.sh ] && chmod +x "$CRASHDIR"/start.sh

View File

@@ -123,5 +123,5 @@ userguide(){
echo "-----------------------------------------------"
read -p "立即启动服务?(1/0) > " res
[ "$res" = 1 ] && start_core && sleep 2
main_menu
return 0
}