Added a check for the KEEPWAVS variable before announcing we are cancelling it
[clinton/abcde.git] / 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)
-                       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