diff options
Diffstat (limited to 'setup-apkrepos.in')
-rw-r--r-- | setup-apkrepos.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in index ed6cb8b..3ad7e7c 100644 --- a/setup-apkrepos.in +++ b/setup-apkrepos.in @@ -74,6 +74,10 @@ find_fastest_mirror() { add_fastest_mirror() { echo "Finding fastest mirror... " local fastest=$(find_fastest_mirror) + if [ -z "$fastest" ]; then + echo "Warning! No mirror found" + return 1 + fi add_mirror "$fastest" } |