1
0
Fork 0

Fix globbing in fstag()

This commit is contained in:
tastytea 2022-04-10 09:32:11 +02:00
parent 77865e63a3
commit 25dbe712e1
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ case ${cmd} in
zsetattr ${file} ${namespace}.tags "${(j/,/)taglist}"
;;
find)
for current_file in ${file}/**; do
setopt LOCAL_OPTIONS GLOB
for current_file in ${file}/**/*; do
local _taglist=$(${0} list ${current_file})
local -a current_tags=(${(@s/,/)_taglist})
unset _taglist