Skip to content

Commit

Permalink
[eos-bash-shared] eos-update: changed output for option --check-mirro…
Browse files Browse the repository at this point in the history
…rs-eos
  • Loading branch information
manuel-192 committed Jul 7, 2024
1 parent 3a5e66e commit 510a77e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions eos-update
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Cmd() { # Show a command, run it, and exit on issues.
}

CheckYourEndeavourosMirrorlist() {
local -r mirrors=(
local -r mirrors=( # for downloading the latest endeavouros-mirrorlist package
https://mirror.alpix.eu/endeavouros/repo/endeavouros/x86_64 # Germany
https://mirror.moson.org/endeavouros/repo/endeavouros/x86_64 # Germany
https://mirrors.gigenet.com/endeavouros/repo/endeavouros/x86_64 # United States
Expand Down Expand Up @@ -64,13 +64,14 @@ CheckYourEndeavourosMirrorlist() {
unsupported+=($lm)
fi
done
if [ ${#unsupported[@]} -eq 0 ] && [ ${#supported[@]} -gt 0 ] ; then
echo2 "==> Info: file $eml contains ${#supported[@]} supported mirrors."
elif [ ${#unsupported[@]} -ne 0 ] ; then
echo2 -e "==> Error: file $eml contains ${#unsupported[@]} unsupported mirror definitions:"
printf "%s\n" "${unsupported[@]}" | sed 's|^| -> |'
elif [ ${#supported[@]} -eq 0 ] ; then
echo2 -e "==> Error: file $eml does not contain supported mirror definitions."
echo2 "Statistics from file $eml:"
echo2 "* contains ${#supported[@]} known mirror definitions."
printf2 "* contains ${#unsupported[@]} unknown mirror definitions"
if [ ${#unsupported[@]} -eq 0 ] ; then
echo2 "."
else
echo2 ":"
printf "%s\n" "${unsupported[@]}" | sed 's|^| Server = |'
fi
rm -f $tmpfile
return
Expand Down

0 comments on commit 510a77e

Please sign in to comment.