PKGBUILDs/extra/gtk4/gtk-update-icon-cache.script

11 lines
213 B
Text
Raw Normal View History

2021-01-11 17:18:54 +00:00
#!/bin/bash
while read -r f; do
if [[ -e ${f}index.theme ]]; then
gtk-update-icon-cache -q "$f"
elif [[ -d $f ]]; then
rm -f "${f}icon-theme.cache"
rmdir --ignore-fail-on-non-empty "$f"
fi
done