updated mp3_set_artist.sh

pull/2/head
Hari Sekhon 4 years ago
parent 5608d85aeb
commit 5e9f3d8b12

@ -43,6 +43,10 @@ artist="$1"
shift || :
# used to pipe file list inline which is more comp sci 101 correct but that could create a race condition on second
# evaluation of file list changing after confirmation prompt, and RAM is cheap, so better to use a static list of files
# stored in ram and operate on that since it'll never be that huge anyway
mp3_files="$(for dir in "${@:-$PWD}"; do find "$dir" -maxdepth 2 -iname '*.mp3' || exit 1; done)"
if is_blank "$mp3_files"; then

Loading…
Cancel
Save