From ebcc88e4641b2b6021a2dc89e008650cab444000 Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Thu, 30 Sep 2021 00:56:44 -0700 Subject: [PATCH] Workaround for github url connection test --- 5etools-docker/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5etools-docker/init.sh b/5etools-docker/init.sh index 951dc8f2..ab5cf81b 100644 --- a/5etools-docker/init.sh +++ b/5etools-docker/init.sh @@ -49,7 +49,7 @@ else echo "Auto update enabled. Checking for remote version..." echo " === Checking connection to $DL_LINK..." SITE_STATUS=$(curl -s -o /dev/null -w "%{http_code}" $DL_LINK) - if [ $SITE_STATUS = 200 ]; then # if the source URL is reachable + if [ $SITE_STATUS = 200 || $SITE_STATUS = 301 ]; then # if the source URL is reachable if [ $DL_TYPE = "get" ]; then # the get.5e.tools structure echo " === Using get structure to download from $DL_LINK" echo " === WARNING: This part of the script has not yet been tested. Please open an issue on the github if you have trouble."