From 5b6efb5e9b543e2054352298386725f3dcfe5443 Mon Sep 17 00:00:00 2001 From: tea Date: Fri, 12 Jul 2024 12:43:19 +0200 Subject: [PATCH] fix audio tag script: compare basename instead of whole argument --- .config/zsh/functions/tag_audio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/functions/tag_audio b/.config/zsh/functions/tag_audio index c71843f..09fabdc 100755 --- a/.config/zsh/functions/tag_audio +++ b/.config/zsh/functions/tag_audio @@ -10,7 +10,7 @@ function _tag_audio_extra_tags() { for dir in ${@}; do [[ -d ${dir} ]] || continue - if [[ "${dir}" == "singles" ]] || [[ "${dir}" == "misc" ]]; then + if [[ "${dir##*/}" == "singles" ]] || [[ "${dir##*/}" == "misc" ]]; then print -Pu2 "%B%F{yellow}skipping ${dir}%f%b" continue fi