-if [ "$1" = "remove" ]; then\r
- for dir in #DIRLIST#; do\r
- if [ -d "$dir" ]; then\r
- if [ -f "$dir"/index.theme ] && \\r
- [ -f "$dir"/icon-theme.cache ] && \\r
- which gtk-update-icon-cache >/dev/null 2>&1\r
- then\r
- gtk-update-icon-cache --force --quiet "$dir"\r
- else\r
- rm -f "$dir"/icon-theme.cache\r
- rmdir -p --ignore-fail-on-non-empty "$dir"\r
- fi\r
- fi\r
- done\r
-fi\r
+if which update-icon-caches >/dev/null 2>&1 ; then
+ update-icon-caches #DIRLIST#
+fi