summarylogtreecommitdiffstats
path: root/gtk-update-icon-cache.script
diff options
context:
space:
mode:
authorFabian Bornschein2020-09-08 18:00:06 +0200
committerFabian Bornschein2020-09-08 18:00:06 +0200
commitea70de3542a87fa3d5b9688f74797b71fccf1847 (patch)
treef36234c5696a56e5dcd367be75b21f0bd1a3b8a0 /gtk-update-icon-cache.script
downloadaur-gtk3-cloudproviders.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.script10
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 00000000000..ee0f1d12d0b
--- /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