History

do not use brace expansions. Fixes #24

Serge Ziryukin committed 11 years ago

Commit a5058921 parent c40cf7e1 file · +7 −7Browse files

Unified · Split

split2flac+7−7
@@ -47,7 +47,7 @@ REPLAY_GAIN=0 · 46 unmodified lines
4747 FORMAT="${0##*split2}"
4848 DIR="."
4949 OUTPATTERN="@artist/{@year - }@album/@track - @title.@ext"
50−COPYMASKS="Covers,covers,*.log,*.txt,*.jpg,*.cbr"
50+COPYMASKS="[Cc]overs \*.log \*.txt \*.jpg \*.cbr"
5151 COPYFILES=1
5252 ENCA_ARGS=""
5353
@@ -67,7 +67,7 @@ unset PIC INPATH CUE CHARSET · 13 unmodified lines
6767 FORCE=0
6868
6969 # do not forget to update before commit
70−VERSION=115
70+VERSION=116
7171
7272 HELP="\${cG}split2flac version: ${VERSION}
7373 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.
@@ -384,7 +384,7 @@ split_file () { · 310 unmodified lines
384384 unset PIC
385385 elif [ -z "${PIC}" ]; then
386386 # try common names
387− for i in {*/,}{*[Cc]over*,*[Ff]older*}.jpg; do
387+ for i in *[Cc]over*.jpg *[Ff]older*.jpg */*[Cc]over*.jpg */*[Ff]older*.jpg; do
388388 if [ -r "${SDIR}/$i" ]; then
389389 PIC="${SDIR}/$i"
390390 break
@@ -651,14 +651,14 @@ split_file () { · 260 unmodified lines
651651 old=`pwd`
652652 cd "${SDIR}"
653653 $msg "\n${cG}Copying files:$cZ\n"
654− eval "for i in {${COPYMASKS}}; do \
654+ eval "for i in ${COPYMASKS}; do \
655655 test -r \"\$i\" && \
656656 echo \" +> \$i\" 2>/dev/null; done"
657657 cd "${old}"
658658 if [ ${DRY} -ne 1 ]; then
659− eval "for i in \"${SDIR}\"/{${COPYMASKS}}; do \
660− test -r \"\$i\" && \
661− cp -r \"\$i\" \"\${OUT}/\"; done"
659+ eval "for i in ${COPYMASKS}; do \
660+ test -r/\"${SDIR}/\$i\" && \
661+ cp -r \"${SDIR}/\$i\" \"\${OUT}/\"; done"
662662 fi
663663 fi
664664

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