Commit d4ac5da8 authored by Natanael Copa's avatar Natanael Copa

setup-apkrepos: prevent adding empty mirror

fixes #8108
parent 72f114c4
......@@ -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"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment