fix local_errf sticking and global_errf causing errors in tagmove

This commit is contained in:
2021-02-06 19:24:01 +01:00
parent 34ae15ad6f
commit c1a2669e9b

View File

@@ -252,6 +252,7 @@ function cmd_wrap {
}
function tagmove_single {
local_errf=
file_name="$1"
artist=$(read_tag artist "$file_name")
date=$(read_tag date "$file_name")
@@ -262,11 +263,6 @@ function tagmove_single {
if [[ -n $local_errf ]]; then
error "Error reading tags for file \"$file_name\""
return
else
if [[ $global_errf ]]; then
error "Global error flag set, not performing move on file \"$file_name\""
return
fi
fi
if [[ -z $artist ]] || \