File: openbox.postrm

package info (click to toggle)
openbox 3.5.2-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 6,804 kB
  • sloc: ansic: 35,864; sh: 11,790; xml: 1,358; makefile: 595; python: 572; sed: 16
file content (22 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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 [ -x /usr/bin/update-menus ]; then update-menus ; fi

#DEBHELPER#