X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/2d9012033ed415b9d851649ec7e206072927f5a3..cbfbda845d7b4c16e242dc7ce2c682824e5a3151:/fa-rip 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; }