History

don't move if src == dst

Serge Ziryukin committed 11 years ago

Commit ff941ba1 parent 4b4c1371 file · +2 −2Browse files

Unified · Split

split2flac+2−2
@@ -68,7 +68,7 @@ unset PIC INPATH CUE CHARSET · 67 unmodified lines
6868 FORCE=0
6969
7070 # do not forget to update before commit
71−VERSION=120
71+VERSION=121
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.
@@ -555,7 +555,7 @@ split_file () { · 480 unmodified lines
555555 FINAL=$(update_pattern "${FINAL}" "performer" "${TAG_PERFORMER}")
556556 FINAL=$(update_pattern "${FINAL}" "track" "${FILE_TRACK}")
557557
558− if [ ${DRY} -ne 1 ]; then
558+ if [ ${DRY} -ne 1 -a "$f" != "${FINAL}" ]; then
559559 mv "$f" "${FINAL}"
560560 if [ $? -ne 0 ]; then
561561 emsg "Failed to rename track file\n"

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