Просмотр исходного кода

Update port prompt to mention pressing Enter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tuanchris 4 месяцев назад
Родитель
Сommit
367bcbbdfa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      flash-fluidnc.sh

+ 1 - 1
flash-fluidnc.sh

@@ -137,7 +137,7 @@ fi
 if [[ ${#PORTS[@]} -eq 1 ]]; then
 if [[ ${#PORTS[@]} -eq 1 ]]; then
     PORT="${PORTS[0]}"
     PORT="${PORTS[0]}"
     echo -e "Found port: ${GREEN}${PORT}${NC}"
     echo -e "Found port: ${GREEN}${PORT}${NC}"
-    read -p "Use this port? [Y/n]: " confirm
+    read -p "Press Enter to use this port (or 'n' to cancel): " confirm
     if [[ "$confirm" =~ ^[Nn] ]]; then
     if [[ "$confirm" =~ ^[Nn] ]]; then
         echo -e "${RED}Exiting.${NC}"
         echo -e "${RED}Exiting.${NC}"
         exit 1
         exit 1