]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add quotes (fbsd sh needs them) and check if the command can be executed
authorStefan Knoblich <stkn@freeswitch.org>
Sat, 29 Mar 2008 18:56:20 +0000 (18:56 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Sat, 29 Mar 2008 18:56:20 +0000 (18:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7982 d0543943-73ff-0310-b7d9-9358b9ac24b2

build/getsounds.sh.in

index 27332bf48cbe0c648dd7fa7fc67d28626fd065c4..a19f24eb14cd5a49298753a7f8aa26e307d3b330 100755 (executable)
@@ -7,10 +7,10 @@ CURL=@CURL@
 
 DIR=`pwd`
 
-if [ -f $WGET ] ; then
+if [ -x "$WGET" ] ; then
     DOWNLOAD_CMD=$WGET
 else
-    if [ -f $CURL ] ; then
+    if [ -x "$CURL" ] ; then
         DOWNLOAD_CMD="$CURL -O"
     fi
 fi