File: openbox.postrm

package info (click to toggle)
openbox 3.6.1-9%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,128 kB
  • sloc: ansic: 36,886; sh: 4,484; xml: 1,358; makefile: 610; python: 594; sed: 16
file content (24 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

# workaround for bug #198522
delete_dir_if_empty() {
	if [ ! -d "$1" ]; then
		return 0;
	fi
	rmdir --ignore-fail-on-non-empty $1;
}

case "$1" in
	purge)
		delete_dir_if_empty /etc/xdg/openbox
		delete_dir_if_empty /etc/xdg
		;;
esac

if which update-menus >/dev/null 2>&1; then
	update-menus ;
fi

#DEBHELPER#