diff options
-rwxr-xr-x | setup-apkrepos.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in index 69de693..df97bc5 100755 --- a/setup-apkrepos.in +++ b/setup-apkrepos.in @@ -60,6 +60,10 @@ add_fastest_mirror() { fi done mirror=$mirror_lowest_rtt_mirror + if [ -z "$mirror" ]; then + eecho "Failed to ping any mirror" + return 1 + fi add_mirror "$mirror" } |