summaryrefslogtreecommitdiff
path: root/burn-audio-cd
diff options
context:
space:
mode:
Diffstat (limited to 'burn-audio-cd')
-rwxr-xr-xburn-audio-cd10
1 files changed, 9 insertions, 1 deletions
diff --git a/burn-audio-cd b/burn-audio-cd
index 2b2c3d7..105d187 100755
--- a/burn-audio-cd
+++ b/burn-audio-cd
@@ -1,5 +1,13 @@
#!/bin/bash
+unset flags
+
+while [[ "x$1" = "x-"* ]]
+do
+ flags="${flags} $1"
+ shift
+done
+
if [ ! -r cd.cue ] \
|| [ ! -r joined.wav ] \
|| [ "$(ls -1t cd.cue joined.wav "$@" \
@@ -19,7 +27,7 @@ su -c '
ec[1]="nN"
while [[ "${ec[0]}" == *"${was}"* ]]
do
- cdrdao write --eject --device /dev/sr0 cd.cue
+ cdrdao write '"${flags}"' --eject --device /dev/sr0 cd.cue
unset was
while [[ "${ec[0]}" != *"${was}"* ]] && [[ "${ec[1]}" != *"${was}"* ]] || [ -z "${was}" ]
do