aboutsummaryrefslogtreecommitdiffstats
path: root/gtk3/gtk-update-icon-cache.script
diff options
context:
space:
mode:
Diffstat (limited to 'gtk3/gtk-update-icon-cache.script')
-rw-r--r--gtk3/gtk-update-icon-cache.script10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk3/gtk-update-icon-cache.script b/gtk3/gtk-update-icon-cache.script
new file mode 100644
index 0000000..ee0f1d1
--- /dev/null
+++ b/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