History

fix copymasks

Sigrid Haflínudóttir committed 7 years ago

Commit b6a65b91 parent 701639b1 file · +4 −6Browse files

Unified · Split

split2flac+4−6
@@ -48,7 +48,7 @@ REPLAY_GAIN=0 · 47 unmodified lines
4848 FORMAT="${0##*split2}"
4949 DIR="."
5050 OUTPATTERN="@artist/{@year - }@album/@track - @title.@ext"
51−COPYMASKS="[Cc]overs \*.log \*.txt \*.jpg \*.cbr"
51+COPYMASKS="[Cc]overs *.log *.txt *.jpg *.cbr"
5252 COPYFILES=1
5353 ENCA_ARGS=""
5454
@@ -677,14 +677,12 @@ split_file () { · 622 unmodified lines
677677 old=`pwd`
678678 cd "${SDIR}"
679679 $msg "\n${cG}Copying files:$cZ\n"
680− eval "for i in ${COPYMASKS}; do \
681− test -r \"\$i\" && \
682− echo \" +> \$i\" 2>/dev/null; done"
680+ eval "ls -1 ${COPYMASKS} 2>/dev/null | sed 's/^/ +> /g'"
683681 cd "${old}"
684682 if [ ${DRY} -ne 1 ]; then
685683 eval "for i in ${COPYMASKS}; do \
686− test -r/\"${SDIR}/\$i\" && \
687− cp -r \"${SDIR}/\$i\" \"\${OUT}/\"; done"
684+ test -r /\"${SDIR}/\"\$i && \
685+ cp -r \"${SDIR}/\"\$i \"\${OUT}/\"; done"
688686 fi
689687 fi
690688

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