From: epg <> Date: Sun, 16 Apr 2006 08:34:19 +0000 (+0000) Subject: Fix r1932 (i told you it was untested). X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/af28e6fa66b0592c23744868ee174dba8b1c8fd5 Fix r1932 (i told you it was untested). --- diff --git a/fa-rip b/fa-rip index 20f4190..22140a5 100755 --- a/fa-rip +++ b/fa-rip @@ -164,12 +164,16 @@ sub rip { my $device = shift; my $trackcount = shift; my $single_file = shift; + my @output; $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; }