]> git.donarmstrong.com Git - debhelper.git/blob - autoscripts/postinst-icons
r2017: * dh_icons: Check for index.theme files before updating the cache.
[debhelper.git] / autoscripts / postinst-icons
1 if which gtk-update-icon-cache >/dev/null 2>&1; then
2         for dir in #DIRLIST#; do
3                 if [ -f "$dir"/index.theme ] && [ -f "$dir"/icon-theme.cache ]; then
4                         gtk-update-icon-cache --force --quiet "$dir"
5                 fi
6         done
7 fi