]> diplodocus.org Git - flac-archive/blobdiff - fa-rip
Add .PRECIOUS: %.1 so gmake doesn't remove .1 files if you say 'gmake foo.0'.
[flac-archive] / fa-rip
diff --git a/fa-rip b/fa-rip
index 55b2fb2..a97e90c 100755 (executable)
--- a/fa-rip
+++ b/fa-rip
@@ -33,4 +33,4 @@ eval fa-tags $discid &
 cdrdao read-toc --device ${CDDEV} --driver generic-mmc toc
 toc2cue toc cue &
 
-exec cdparanoia -d ${CDDEV} 1-$discid[2] wav
+exec cdparanoia -d ${CDDEV} 1-$(grep -c 'TRACK.*AUDIO' cue) wav