Add quotes (fbsd sh needs them) and check if the command can be executed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7982 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
43f2016bed
commit
5cd4a3d0cb
|
@ -7,10 +7,10 @@ CURL=@CURL@
|
||||||
|
|
||||||
DIR=`pwd`
|
DIR=`pwd`
|
||||||
|
|
||||||
if [ -f $WGET ] ; then
|
if [ -x "$WGET" ] ; then
|
||||||
DOWNLOAD_CMD=$WGET
|
DOWNLOAD_CMD=$WGET
|
||||||
else
|
else
|
||||||
if [ -f $CURL ] ; then
|
if [ -x "$CURL" ] ; then
|
||||||
DOWNLOAD_CMD="$CURL -O"
|
DOWNLOAD_CMD="$CURL -O"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue