瀏覽代碼

removed path from curl check

Daniel Gibbs 10 年之前
父節點
當前提交
231febbebd
共有 5 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      JustCause2/jc2server
  2. 1 1
      UnrealTournament2004/ut2k4server
  3. 1 1
      UnrealTournament99/ut99server
  4. 1 1
      functions/core_dl.sh
  5. 1 1
      functions/core_functions.sh

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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