mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-03-03 21:37:12 +00:00
Fixing Error
This commit is contained in:
parent
5b6dc84414
commit
08af46f25e
|
@ -234,7 +234,7 @@ if [[ $FORCE_RESHADE_UPDATE_CHECK -eq 1 ]] || [[ $UPDATE_RESHADE -eq 1 ]] || [[
|
|||
echo -e "Checking for Reshade updates.\n$SEPARATOR"
|
||||
RHTML=$(curl --max-time 10 -sL "$RESHADE_URL")
|
||||
ALT_URL=0
|
||||
if RHTML=$("<h2>Something went wrong.</h2>"); then
|
||||
if [[ $? != 0 || $RHTML =~ "<h2>Something went wrong.</h2>" ]]; then
|
||||
ALT_URL=1
|
||||
echo "Error: Failed to connect to '$RESHADE_URL' after 10 seconds. Trying to connect to '$RESHADE_URL_ALT'."
|
||||
RHTML=$(curl -sL "$RESHADE_URL_ALT")
|
||||
|
|
Loading…
Reference in New Issue
Block a user