summarylogtreecommitdiffstats
path: root/gtk4-update-icon-cache.script
blob: 608b1ea38db50a605e9dd1f6557007602b9d1104 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env 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