History

fix parallel runs (use mktemp to create unique cue sheet filename to save the internal one)

Serge Zirukin committed 15 years ago

Commit f8a875a1 parent 3d4f7a51 file · +3 −2Browse files

Unified · Split

split2flac.sh+3−2
@@ -35,7 +35,7 @@ · 34 unmodified lines
3535 # 3 - something has failed
3636
3737 CONFIG="${HOME}/.split2flac"
38−TMPCUE="${HOME}/.split2flac_sheet.cue"
38+TMPCUE="${HOME}/.split2flac_XXXXX.cue"
3939 TMPPIC="${HOME}/.split2flac_cover.jpg"
4040 FAILED="split_failed.txt"
4141
@@ -68,7 +68,7 @@ unset PIC INPATH CUE CHARSET · 26 unmodified lines
6868 FORCE=0
6969
7070 # do not forget to update before commit
71−VERSION=100
71+VERSION=101
7272
7373 HELP="\${cG}split2flac version: ${VERSION}
7474 Splits one big \${cU}APE/FLAC/WV/WAV\$cZ\$cG audio image (or a collection) into \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming.
@@ -294,6 +294,7 @@ split_file () { · 219 unmodified lines
294294
295295 if [ -n "${CUESHEET}" ]; then
296296 $msg "${cP}Found internal cue sheet$cZ\n"
297+ TMPCUE=$(mktemp "${TMPCUE}")
297298 CUE="${TMPCUE}"
298299 echo "${CUESHEET}" > "${CUE}"
299300

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t