Jelajahi Sumber

Fixed curl check bug

Daniel Gibbs 10 tahun lalu
induk
melakukan
a023b47ac5

+ 8 - 6
7DaysToDie/sdtdserver

@@ -86,16 +86,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
ARKSurvivalEvolved/arkserver

@@ -84,16 +84,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Arma3/arma3server

@@ -99,16 +99,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
BlackMesa/bmdmserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
BladeSymphony/bsserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
ChivalryMedievalWarfare/cmwserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
CounterStrike/csserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
CounterStrikeConditionZero/csczserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
CounterStrikeSource/cssserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
DayOfDefeat/dodserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
DayOfDefeatSource/dodsserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
DeathmatchClassic/dmcserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
DontStarveTogether/dstserver

@@ -84,16 +84,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
DoubleActionBoogaloo/dabserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
FistfulOfFrags/fofserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
GarrysMod/gmodserver

@@ -96,16 +96,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
HalfLife2Deathmatch/hl2dmserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
HalfLifeDeathmatch/hldmserver

@@ -89,16 +89,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
HalfLifeDeathmatchSource/hldmsserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Insurgency/insserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
JustCause2/jc2server

@@ -83,16 +83,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
KillingFloor/kfserver

@@ -92,16 +92,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Left4Dead/l4dserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Left4Dead2/l4d2server

@@ -89,16 +89,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Mumble/mumbleserver

@@ -69,16 +69,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
NS2Combat/ns2cserver

@@ -95,16 +95,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
NaturalSelection2/ns2server

@@ -95,16 +95,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
NoMoreRoomInHell/nmrihserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
OpposingForce/opforserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
PiratesVikingandKnightsII/pvkiiserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
ProjectZomboid/pzserver

@@ -84,16 +84,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
RedOrchestra/roserver

@@ -88,16 +88,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Ricochet/ricochetserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
SeriousSam3BFE/ss3sserver

@@ -87,16 +87,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
StarBound/sbserver

@@ -83,16 +83,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
TeamFortress2/tf2server

@@ -95,16 +95,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
TeamFortressClassic/tfcserver

@@ -90,16 +90,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
TeamSpeak3/ts3server

@@ -66,16 +66,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Teeworlds/twserver

@@ -86,16 +86,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
Terraria/terrariaserver

@@ -85,16 +85,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
UnrealTournament2004/ut2k4server

@@ -78,16 +78,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else

+ 8 - 6
UnrealTournament99/ut99server

@@ -77,16 +77,18 @@ if [ ! -f "${filepath}" ]; then
 	fi
 	githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
 	echo -e "    fetching ${filename}...\c"
-    if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
-    	echo -e "\e[0;31mFAIL\e[0m\n"
+	if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
+		:
+	else	
+		echo -e "\e[0;31mFAIL\e[0m\n"
 		echo "Curl is not installed!"
 		echo -e ""
-		exit    	
-    fi	
-    CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
+		exit
+	fi
+	curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
 	if [ $? -ne 0 ]; then
 		echo -e "\e[0;31mFAIL\e[0m\n"
-		echo "		$CURL"|grep "curl:"
+		echo "		${curl}"|grep "curl:"
 		echo -e "${githuburl}\n"
 		exit
 	else