File: postrm

package info (click to toggle)
shared-mime-info 2.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,800 kB
  • sloc: cpp: 3,175; xml: 2,182; ansic: 612; python: 168; sh: 121; javascript: 113; lisp: 29; cobol: 20; makefile: 16; cs: 13; perl: 11; java: 7; objc: 6; php: 1; vhdl: 1
file content (14 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = purge ]; then
	MIMEDIR="/usr/share/mime"
	if [ -e $MIMEDIR ]; then
		cd $MIMEDIR && rm -rf $(ls |grep -v ^packages$)
		rmdir --ignore-fail-on-non-empty $MIMEDIR
	fi
fi