Fixing Error

This commit is contained in:
Nightmare1984 2025-02-25 16:47:41 -05:00
parent 5b6dc84414
commit 08af46f25e

View File

@ -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")