Commit 6f9822d1 authored by Dave Reisner's avatar Dave Reisner
Browse files

error out early when no enabled mirrors are found



Fixes FS#26663
Signed-off-by: default avatarDave Reisner <dreisner@archlinux.org>
parent 7005005c
......@@ -161,7 +161,11 @@ update_tarball() {
fi
if [ -f "$MIRRORLIST" ]; then
mirrorlist=$(grep "^Server" $MIRRORLIST | cut -f3 -d" ")
mirrorlist=($(grep "^Server" $MIRRORLIST | cut -f3 -d" "))
if (( ${#mirrorlist[@]} == 0 )); then
error "No mirrors found in mirrorlist file $MIRRORLIST"
exit $_E_CONFIG_ERROR
fi
else
error "Could not find pacman mirrorlist file $MIRRORLIST"
exit $_E_CONFIG_ERROR
......
Supports Markdown
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