diff options
author | xiota | 2023-07-09 11:09:56 -0700 |
---|---|---|
committer | xiota | 2023-07-09 14:24:01 -0700 |
commit | 7e73c72e1ba2867ca6d35c3e80ae2e05f509ad3d (patch) | |
tree | 7acfa611fa1f88efad72348bd5e140751e80b360 /gtk-update-icon-cache.script | |
parent | 10fb2c410dd07b1f496d966ba88da3f7334fc9b4 (diff) | |
download | aur-7e73c72e1ba2867ca6d35c3e80ae2e05f509ad3d.tar.gz |
4.11.4.r25
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 |