diff options
Diffstat (limited to 'abs/extra/gtk3/gtk-update-icon-cache.script')
-rw-r--r-- | abs/extra/gtk3/gtk-update-icon-cache.script | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/abs/extra/gtk3/gtk-update-icon-cache.script b/abs/extra/gtk3/gtk-update-icon-cache.script new file mode 100644 index 0000000..ee0f1d1 --- /dev/null +++ b/abs/extra/gtk3/gtk-update-icon-cache.script @@ -0,0 +1,10 @@ +#!/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 |