fix: skip additional servers prompt when AUTO_YES=1

The auto-yes flag was entering the add-servers loop and prompting for
input. Now breaks out of the loop immediately in non-interactive mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 18:35:13 +00:00
parent a2eeab9719
commit 943bc4a063
+1
View File
@@ -328,6 +328,7 @@ SERVERS_JSON="${CURRENT_SERVERS:-}"
while true; do while true; do
echo "" echo ""
if [ "$AUTO_YES" = "1" ]; then break; fi
if ! ask_yes_no "Add an additional Gitea server?"; then if ! ask_yes_no "Add an additional Gitea server?"; then
break break
fi fi