fix: setup.sh skip interactive prompt in non-TTY mode
This commit is contained in:
@@ -155,6 +155,7 @@ echo -e " 产出在 ${BOLD}release/${NC} 目录"
|
||||
echo ""
|
||||
|
||||
# Ask if user wants to run now
|
||||
if [ -t 0 ]; then
|
||||
read -p " 现在启动开发版?(y/n): " -n 1 RUN
|
||||
echo ""
|
||||
if [ "$RUN" = "y" ] || [ "$RUN" = "Y" ]; then
|
||||
@@ -162,3 +163,4 @@ if [ "$RUN" = "y" ] || [ "$RUN" = "Y" ]; then
|
||||
echo -e " ${CYAN}启动 U-Claw...${NC}"
|
||||
npm run dev
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user