summaryrefslogtreecommitdiff
path: root/setup-apkrepos.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-apkrepos.in')
-rw-r--r--setup-apkrepos.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index 63b1600..9112295 100644
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -218,7 +218,13 @@ if $add_fastest; then
add_fastest_mirror && changed=true
fi
-while ! $changed; do
+if $add_first || $add_random || $add_fastest; then
+ interactive=false
+else
+ interactice=true
+fi
+
+while $interactive && ! $changed; do
if [ -z "$MIRRORS" ]; then
MIRRORS=$(wget -qO- $MIRRORS_URL)
fi