summaryrefslogtreecommitdiffstats
path: root/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'dilos/dependencies/tqt3/debian/libtqt3-mt.postrm')
-rw-r--r--dilos/dependencies/tqt3/debian/libtqt3-mt.postrm8
1 files changed, 6 insertions, 2 deletions
diff --git a/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm b/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm
index bb679158a..6556affdc 100644
--- a/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm
+++ b/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm
@@ -1,8 +1,12 @@
#!/bin/sh
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
+
if [ "$1" = "purge" ]; then
- if [ -d "/usr/share/doc/libtqt3-mt/" ]; then
- rm -rf /usr/share/doc/libtqt3-mt/
+ if [ -d "${BASEDIR}/usr/share/doc/libtqt3-mt/" ]; then
+ rm -rf ${BASEDIR}/usr/share/doc/libtqt3-mt/
fi
fi