File: postinst

package info (click to toggle)
mate-icon-theme 1.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 90,728 kB
  • sloc: makefile: 9,690; sh: 37
file content (20 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
set -e

write_cache()
{
if [ -x `which gtk-update-icon-cache` ]; then
    if ! gtk-update-icon-cache --force --quiet /usr/share/icons/mate; then
        echo "WARNING: icon cache generation failed"
    fi
fi
}

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

write_cache

#DEBHELPER#