New comment by Hoshpak on void-packages repository https://github.com/void-linux/void-packages/pull/23601#issuecomment-661288545 Comment: > + if [[ ${ignore_in_usr_share} != *$(basename "${file}")* ]] > > Can't you just compare it to |${file##/*}|, is faster but should give the same > output as basename. (find does afaik never give you a path with a trailing |/|) That works as well. I changed it.