add debugging information to getsounds.sh

This commit is contained in:
Michael Jerris 2010-06-08 15:35:07 -04:00
parent 493fc64831
commit f52d736ae0
1 changed files with 7 additions and 4 deletions

View File

@ -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