Skip to content

Commit

Permalink
[eos-bash-shared] eos-connection-checker: added fallback URL for test…
Browse files Browse the repository at this point in the history
…ing connection availability
  • Loading branch information
manuel-192 committed May 30, 2024
1 parent e48ec85 commit 292e1f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eos-connection-checker
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Main() {
local URL
local retval=201
local verbose=no
local fallback="https://forum.endeavouros.com/faq" # fallback if no mirrors in $ml

case "$1" in
-v | --verbose) verbose=yes ;; # will show the responding mirror URL
Expand All @@ -44,9 +45,8 @@ Main() {
others="$(AllMirrors)"
fi
fi
[ "$others" ] || others="https://forum.endeavouros.com/faq" # fallback if no mirrors

for URL in $others ; do
for URL in $others $fallback ; do
Test "$URL"
done
return $retval # no connection
Expand Down

0 comments on commit 292e1f5

Please sign in to comment.