summaryrefslogtreecommitdiff
path: root/sysui/desktop/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'sysui/desktop/debian/postrm')
-rwxr-xr-xsysui/desktop/debian/postrm18
1 files changed, 8 insertions, 10 deletions
diff --git a/sysui/desktop/debian/postrm b/sysui/desktop/debian/postrm
index 1cb32d37b3c3..0e6099ea5b43 100755
--- a/sysui/desktop/debian/postrm
+++ b/sysui/desktop/debian/postrm
@@ -11,16 +11,14 @@ if [ "$1" != "purge" ]; then
if [ -x /usr/bin/update-menus ]; then
update-menus
fi
- for theme in gnome hicolor; do
- if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
- # touch it, just in case we cannot find the binary...
- touch /usr/share/icons/$theme
- if (which gtk-update-icon-cache); then
- gtk-update-icon-cache /usr/share/icons/$theme
- fi
- # ignore errors (e.g. when there is a cache, but no index.theme)
- true
+ if [ -e /usr/share/icons/hicolor/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/hicolor
+ if (which gtk-update-icon-cache); then
+ gtk-update-icon-cache /usr/share/icons/hicolor
fi
- done
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
fi
exit 0