shithub: sox

Download patch

ref: 122cc0ee17688dbbdb58f52daf5c3208d87001d8
parent: 3916a06e88d568bb3939f4226d9ed809260b25be
author: cbagwell <cbagwell>
date: Wed Dec 20 22:23:05 EST 2006

fix solaris fixes

--- a/src/tests.sh
+++ b/src/tests.sh
@@ -26,8 +26,10 @@
   
 convertToAndFrom () {
   while [ $# != 0 ]; do
-      format1_skip=`echo ${format1} | grep $skip`
-      from_skip=`echo ${1} | grep ${skip}`
+      if [ "${skip}x" != "x" ] ; then
+        format1_skip=`echo ${format1} | grep ${skip}`
+        from_skip=`echo ${1} | grep ${skip}`
+      fi
       if [ "${format1_skip}x" = "x" -a "${from_skip}x" = "x" ] ; then
         getFormat ${format1}; format1Text=$formatText; format1Flags=$formatFlags
         getFormat       $1; format2Text=$formatText; format2Flags=$formatFlags