Allow cleaning when OUTTPUTYPE=wav
authorAndrew Strong <andrew.david.strong@gmail.com>
Fri, 6 Mar 2015 00:18:48 +0000 (11:18 +1100)
committerAndrew Strong <andrew.david.strong@gmail.com>
Fri, 6 Mar 2015 00:18:48 +0000 (11:18 +1100)
Thanks to Roger rogerx.oss<at>gmail.com for
highlighting the problem and demonstrating the
solution. This closes Issue 94.

abcde

diff --git a/abcde b/abcde
index 71e5bce..cfa901d 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -1255,6 +1255,9 @@ do_encode ()
                                ;;
                        wav)
                                # In case of wav output we need nothing. Just keep the wavs.
+                               # But we need the following to allow full logging and subsequent 
+                               # successful cleaning of $ABCDETEMPDIR. Andrew.
+             echo "encodetrack-$OUTPUT-$UTRACKNUM" >> "$ABCDETEMPDIR/status"
                                ;;
                        esac
                        $RUN_COMMAND_PIPES