diff options
author | horsemanoffaith | 2018-01-20 20:27:54 -0800 |
---|---|---|
committer | horsemanoffaith | 2018-01-20 20:27:54 -0800 |
commit | 365f0fef3fa68a1403e72bf0a6cd3250634e4eda (patch) | |
tree | 72a3174c919ca4dd1bc149a65a8d72395bd9d665 /gtk-update-icon-cache.script | |
parent | a68327753fc660a82becc1e9d93357fc1dddc6b6 (diff) | |
download | aur-365f0fef3fa68a1403e72bf0a6cd3250634e4eda.tar.gz |
update to version 3.22.26+47+g3a1a7135a2
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 |