forked from Mirrors/freeswitch
make curl call in getlib.sh follow 301 redirects
This commit is contained in:
parent
861c4e9c47
commit
fb9ad099e2
|
@ -11,7 +11,7 @@ CURL=@CURL@
|
||||||
if [ -f "$WGET" ]; then
|
if [ -f "$WGET" ]; then
|
||||||
DOWNLOAD_CMD=$WGET
|
DOWNLOAD_CMD=$WGET
|
||||||
elif [ -f "$CURL" ]; then
|
elif [ -f "$CURL" ]; then
|
||||||
DOWNLOAD_CMD="$CURL -O"
|
DOWNLOAD_CMD="$CURL -L -O"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "`echo $1 | grep '://'`" ]; then
|
if [ -n "`echo $1 | grep '://'`" ]; then
|
||||||
|
|
Loading…
Reference in New Issue