]> diplodocus.org Git - flac-archive/commitdiff
Fix r1932 (i told you it was untested).
authorepg <>
Sun, 16 Apr 2006 08:34:19 +0000 (08:34 +0000)
committerepg <>
Sun, 16 Apr 2006 08:34:19 +0000 (08:34 +0000)
fa-rip

diff --git a/fa-rip b/fa-rip
index 20f4190..22140a5 100755 (executable)
--- a/fa-rip
+++ b/fa-rip
@@ -164,12 +164,16 @@ sub rip {
     my $device = shift;
     my $trackcount = shift;
     my $single_file = shift;
     my $device = shift;
     my $trackcount = shift;
     my $single_file = shift;
+    my @output;
 
     $device ||= '/dev/cdrom';
 
     $device ||= '/dev/cdrom';
+    if ($single_file) {
+        @output = ("1-$trackcount", 'wav');
+    } else {
+        @output = ('-B');
+    }
 
 
-    exec('cdparanoia', '-d', $device,
-         (($single_file and ("1-$trackcount", 'wav')) or ('-B')));
-    # exec prints its own error message so just
+    exec('cdparanoia', '-d', $device, @output);
     die;
 }
 
     die;
 }