From f52d736ae046e9ef4b8824d9534ee6e185f87afa Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 8 Jun 2010 15:35:07 -0400 Subject: [PATCH] add debugging information to getsounds.sh --- build/getsounds.sh.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build/getsounds.sh.in b/build/getsounds.sh.in index 51cc19b878..09105fd280 100755 --- a/build/getsounds.sh.in +++ b/build/getsounds.sh.in @@ -9,16 +9,19 @@ DIR=`pwd` if [ -x "$WGET" ] ; then DOWNLOAD_CMD=$WGET -else - if [ -x "$CURL" ] ; then - DOWNLOAD_CMD="$CURL -O" - fi +fi +if [ "x${DOWNLOAD_CMD}" = "x" -a -x "$CURL" ] ; then + DOWNLOAD_CMD="$CURL -O" fi base=http://files.freeswitch.org/ tarfile=$1 install=$2 +echo -n "#" +pwd +echo "# $0 $1 $2" + if [ ! -f $tarfile ] ; then $DOWNLOAD_CMD $base$tarfile if [ ! -f $tarfile ] ; then