summaryrefslogtreecommitdiff
path: root/debian/bitmask.postinst
blob: ee416647ea7a0335ecd7ce272662598ee985acaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh
set -e

case "$1" in
    configure)
	if [ -e /usr/share/icons/hicolor/icon-theme.cache ]; then
	rm /usr/share/icons/hicolor/icon-theme.cache
	fi
	if [ -x /usr/bin/gtk-update-icon-cache-3.0 ]; then
	gtk-update-icon-cache-3.0 -q -t -f /usr/share/icons/hicolor
	elif [ -x /usr/bin/gtk-update-icon-cache ]; then
	gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

if [ "$1" = "triggered" ]; then
    exit 0
fi

#DEBHELPER#