Added a check for the KEEPWAVS variable before announcing we are cancelling it
authorJesus Climent <mooch@debian.org>
Mon, 3 Oct 2005 15:20:23 +0000 (15:20 +0000)
committerJesus Climent <mooch@debian.org>
Mon, 3 Oct 2005 15:20:23 +0000 (15:20 +0000)
abcde

diff --git a/abcde b/abcde
index 539c95c..c06981f 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -2720,7 +2720,9 @@ do
                        [ "$MPPENCODERSYNTAX" = "default" ] && MPPENCODERSYNTAX=mppenc
                        ;;
                wav)
                        [ "$MPPENCODERSYNTAX" = "default" ] && MPPENCODERSYNTAX=mppenc
                        ;;
                wav)
-                       vecho "Unsetting the KEEPWAVS option, since the resulting wav files were requested..."
+                       if [ "$KEEPWAVS" = "y" ]; then
+                               vecho "Unsetting the KEEPWAVS option, since the resulting wav files were requested..."
+                       fi
                        KEEPWAVS=move
                        ;;
                *)      echo "abcde error: Invalid OUTPUTTYPE defined" >&2
                        KEEPWAVS=move
                        ;;
                *)      echo "abcde error: Invalid OUTPUTTYPE defined" >&2