summarylogtreecommitdiffstats
path: root/gtk-update-icon-cache.script
blob: ee0f1d12d0b7bb5e68a922ef172da57b076e48f3 (plain)
1
2
3
4
5
6
7
8
9
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