File: openbox.postrm

package info (click to toggle)
openbox 3.3-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,848 kB
  • ctags: 2,256
  • sloc: ansic: 21,021; sh: 9,403; makefile: 413; python: 362; xml: 31; sed: 16
file content (20 lines) | stat: -rw-r--r-- 267 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
#!/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

#DEBHELPER#