File: postinst

package info (click to toggle)
hicolor-icon-theme 0.17-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 360 kB
  • sloc: sh: 535; makefile: 25
file content (21 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
set -e

UPDATE_CACHE=
if which gtk-update-icon-cache-3.0 >/dev/null 2>&1 ; then
    UPDATE_CACHE=gtk-update-icon-cache-3.0
elif which gtk-update-icon-cache >/dev/null 2>&1 ; then
    UPDATE_CACHE=gtk-update-icon-cache
fi

if [ -n "$UPDATE_CACHE" ]; then
    if ! "$UPDATE_CACHE" --force --quiet /usr/share/icons/hicolor; then
        echo "WARNING: icon cache generation failed"
    fi
fi

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

#DEBHELPER#