From 231febbebd5b8b3112a1246fd720adde41c89107 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 6 Mar 2016 17:52:44 +0000 Subject: [PATCH] removed path from curl check --- JustCause2/jc2server | 2 +- UnrealTournament2004/ut2k4server | 2 +- UnrealTournament99/ut99server | 2 +- functions/core_dl.sh | 2 +- functions/core_functions.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/JustCause2/jc2server b/JustCause2/jc2server index f92e74ebc..29666b60d 100644 --- a/JustCause2/jc2server +++ b/JustCause2/jc2server @@ -92,7 +92,7 @@ if [ ! -f "${filedir}/${filename}" ]; then fi echo -e " fetching ${filename}...\c" # Check curl exists and use available path - curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl $(echo $PATH | sed "s/\([:]\|\$\)/\/curl /g")" + curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl)" for curlcmd in ${curlpaths} do if [ -x "${curlcmd}" ]; then diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index 444e16871..5888477b3 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -87,7 +87,7 @@ if [ ! -f "${filedir}/${filename}" ]; then fi echo -e " fetching ${filename}...\c" # Check curl exists and use available path - curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl $(echo $PATH | sed "s/\([:]\|\$\)/\/curl /g")" + curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl)" for curlcmd in ${curlpaths} do if [ -x "${curlcmd}" ]; then diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index 36704e0b2..edd64523e 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -87,7 +87,7 @@ if [ ! -f "${filedir}/${filename}" ]; then fi echo -e " fetching ${filename}...\c" # Check curl exists and use available path - curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl $(echo $PATH | sed "s/\([:]\|\$\)/\/curl /g")" + curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl)" for curlcmd in ${curlpaths} do if [ -x "${curlcmd}" ]; then diff --git a/functions/core_dl.sh b/functions/core_dl.sh index 98e6ebee4..579fb2788 100644 --- a/functions/core_dl.sh +++ b/functions/core_dl.sh @@ -100,7 +100,7 @@ if [ ! -f "${filedir}/${filename}" ]; then fi # Check curl exists and use available path - curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl $(echo $PATH | sed "s/\([:]\|\$\)/\/curl /g")" + curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl)" for curlcmd in ${curlpaths} do if [ -x "${curlcmd}" ]; then diff --git a/functions/core_functions.sh b/functions/core_functions.sh index 8e7b530c4..ccea1f07d 100644 --- a/functions/core_functions.sh +++ b/functions/core_functions.sh @@ -38,7 +38,7 @@ if [ ! -f "${filedir}/${filename}" ]; then fi echo -e " fetching ${filename}...\c" # Check curl exists and use available path - curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl $(echo $PATH | sed "s/\([:]\|\$\)/\/curl /g")" + curlpaths="$(command -v curl 2>/dev/null) $(which curl >/dev/null 2>&1) /usr/bin/curl /bin/curl /usr/sbin/curl /sbin/curl)" for curlcmd in ${curlpaths} do if [ -x "${curlcmd}" ]; then