Procházet zdrojové kódy

removed path from curl check

Daniel Gibbs před 10 roky
rodič
revize
231febbebd

+ 1 - 1
JustCause2/jc2server

@@ -92,7 +92,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
 	fi
 	fi
 	echo -e "    fetching ${filename}...\c"
 	echo -e "    fetching ${filename}...\c"
 	# Check curl exists and use available path
 	# 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}
 	for curlcmd in ${curlpaths}
 	do
 	do
 		if [ -x "${curlcmd}" ]; then
 		if [ -x "${curlcmd}" ]; then

+ 1 - 1
UnrealTournament2004/ut2k4server

@@ -87,7 +87,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
 	fi
 	fi
 	echo -e "    fetching ${filename}...\c"
 	echo -e "    fetching ${filename}...\c"
 	# Check curl exists and use available path
 	# 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}
 	for curlcmd in ${curlpaths}
 	do
 	do
 		if [ -x "${curlcmd}" ]; then
 		if [ -x "${curlcmd}" ]; then

+ 1 - 1
UnrealTournament99/ut99server

@@ -87,7 +87,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
 	fi
 	fi
 	echo -e "    fetching ${filename}...\c"
 	echo -e "    fetching ${filename}...\c"
 	# Check curl exists and use available path
 	# 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}
 	for curlcmd in ${curlpaths}
 	do
 	do
 		if [ -x "${curlcmd}" ]; then
 		if [ -x "${curlcmd}" ]; then

+ 1 - 1
functions/core_dl.sh

@@ -100,7 +100,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
 	fi
 	fi
 	
 	
 	# Check curl exists and use available path
 	# 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}
 	for curlcmd in ${curlpaths}
 	do
 	do
 		if [ -x "${curlcmd}" ]; then
 		if [ -x "${curlcmd}" ]; then

+ 1 - 1
functions/core_functions.sh

@@ -38,7 +38,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
 	fi
 	fi
 	echo -e "    fetching ${filename}...\c"
 	echo -e "    fetching ${filename}...\c"
 	# Check curl exists and use available path
 	# 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}
 	for curlcmd in ${curlpaths}
 	do
 	do
 		if [ -x "${curlcmd}" ]; then
 		if [ -x "${curlcmd}" ]; then