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