Codebase list pnm2ppa / 2ce9950
Move the "set -e" invocation of postrm from shebang to body. - Rename it to pnm2ppa.postrm. Didier Raboud 12 years ago
2 changed file(s) with 24 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/sh
1
2 set -e
3
4 # Purge actions
5 if [ "$1" = purge ] ; then
6 # Get rid of configuration file
7 if [ -f /etc/pnm2ppa.conf ]; then
8 rm -f /etc/pnm2ppa.conf
9 fi
10 # We're pretty sure that the pnm2ppa magicfilter files were generated
11 # or installed by pnm2ppa packages.
12 if [ -d /etc/magicfilter ] ; then
13 for i in /etc/magicfilter/p?m2ppa*-filter ; do
14 rm -f $i || true
15 done
16
17 # If there are no files in the magicfilter directory, remove.
18 # rmdir will fail if there are files... Not an error.
19 rmdir /etc/magicfilter 2> /dev/null || true
20 fi
21 fi
22
23 #DEBHELPER#
+0
-22
debian/postrm less more
0 #!/bin/sh -e
1 #
2 # Purge actions
3 if [ "$1" = purge ] ; then
4 # Get rid of configuration file
5 if [ -f /etc/pnm2ppa.conf ]; then
6 rm -f /etc/pnm2ppa.conf
7 fi
8 # We're pretty sure that the pnm2ppa magicfilter files were generated
9 # or installed by pnm2ppa packages.
10 if [ -d /etc/magicfilter ] ; then
11 for i in /etc/magicfilter/p?m2ppa*-filter ; do
12 rm -f $i || true
13 done
14
15 # If there are no files in the magicfilter directory, remove.
16 # rmdir will fail if there are files... Not an error.
17 rmdir /etc/magicfilter 2> /dev/null || true
18 fi
19 fi
20
21 #DEBHELPER#