]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
getsounds.sh: style tweaks
authorTravis Cross <tc@traviscross.com>
Wed, 25 Apr 2012 08:05:42 +0000 (08:05 +0000)
committerTravis Cross <tc@traviscross.com>
Wed, 25 Apr 2012 08:59:12 +0000 (08:59 +0000)
build/getsounds.sh.in

index 1e3c760a3c88e8679be49146d397a2a835f86e5a..3f14eab822857440bbffdc18f967201c55a30181 100755 (executable)
@@ -8,7 +8,7 @@ CURL=@CURL@
 
 DIR=`pwd`
 
-if [ -x "$WGET" ] ; then
+if [ -x "$WGET" ]; then
   DOWNLOAD_CMD=$WGET
 fi
 if [ "x${DOWNLOAD_CMD}" = "x" -a -x "$CURL" ] ; then
@@ -23,22 +23,22 @@ echo -n "#"
 pwd
 echo "# $0 $1 $2"
 
-if [ -n "$FS_SOUNDS_DIR" ] ; then
+if [ -n "$FS_SOUNDS_DIR" ]; then
   [ -d $FS_SOUNDS_DIR ] || mkdir -p $FS_SOUNDS_DIR
   DIR=$FS_SOUNDS_DIR
 fi
 
-if [ ! -f $DIR/$tarfile ] ; then
+if [ ! -f $DIR/$tarfile ]; then
   (cd $DIR && $DOWNLOAD_CMD $base$tarfile)
-  if [ ! -f $DIR/$tarfile ] ; then
-    echo cannot find $tarfile
+  if [ ! -f $DIR/$tarfile ]; then
+    echo "cannot find $tarfile"
     exit 1
   fi
 fi
 
-if [ ! -z $install ] ; then
+if [ ! -z "$install" ]; then
   test -d $install || mkdir $install
-  cd $install && $ZCAT -c -d $DIR/$tarfile | $TAR xf -
+  (cd $install && $ZCAT -c -d $DIR/$tarfile | $TAR xf -)
 fi
 
 exit 0