diff options
author | Fabian Bornschein | 2020-09-08 18:00:06 +0200 |
---|---|---|
committer | Fabian Bornschein | 2020-09-08 18:00:06 +0200 |
commit | ea70de3542a87fa3d5b9688f74797b71fccf1847 (patch) | |
tree | f36234c5696a56e5dcd367be75b21f0bd1a3b8a0 /gtk-update-icon-cache.script | |
download | aur-ea70de3542a87fa3d5b9688f74797b71fccf1847.tar.gz |
Work for a cause, not for applause. Live life to express, not to impress.
Diffstat (limited to 'gtk-update-icon-cache.script')
-rw-r--r-- | gtk-update-icon-cache.script | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk-update-icon-cache.script b/gtk-update-icon-cache.script new file mode 100644 index 000000000000..ee0f1d12d0b7 --- /dev/null +++ b/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 |