run-voice-test.sh: allow turning on all debugging.
authorKrisztian Litkey <kli@iki.fi>
Fri, 11 Oct 2013 15:39:38 +0000 (18:39 +0300)
committerKrisztian Litkey <kli@iki.fi>
Fri, 10 Jan 2014 15:07:43 +0000 (17:07 +0200)
run-voice-test.sh

index 56a97fc..4196c0f 100755 (executable)
@@ -88,7 +88,7 @@ while [ -n "$1" ]; do
             xeq=echo
             ;;
         -d|--debug)
-            DEBUG_OPTIONS="-d '*'"
+            DEBUG_OPTIONS='-d'
             ;;
          *)
             EXTRA_OPTIONS="$EXTRA_OPTIONS $1"
@@ -97,6 +97,12 @@ while [ -n "$1" ]; do
     shift
 done
 
-$xeq ./src/srs-daemon -f $VERBOSITY $DEBUG_OPTIONS \
-    -P $PLUGINDIR -c $CONFIGFILE \
-    $LOAD_OPTIONS $PULSESRC $EXTRA_OPTIONS
+if [ -z "$DEBUG_OPTIONS" ]; then
+    $xeq ./src/srs-daemon -f $VERBOSITY "$DEBUG_OPTIONS" \
+        -P $PLUGINDIR -c $CONFIGFILE \
+        $LOAD_OPTIONS $PULSESRC $EXTRA_OPTIONS
+else
+    $xeq ./src/srs-daemon -f $VERBOSITY -d '*' \
+        -P $PLUGINDIR -c $CONFIGFILE \
+        $LOAD_OPTIONS $PULSESRC $EXTRA_OPTIONS
+fi