summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-ucf
diff options
context:
space:
mode:
authorJeroen Schot <schot@a-eskwadraat.nl>2011-08-23 10:12:35 +0200
committerJoey Hess <joey@kitenet.net>2011-08-23 13:25:20 -0400
commitadec9f6ded68f87f9d960cd78658fa8febd47b4b (patch)
tree8b302e7fb82811909a1b1a2e923de8f4d7076e3b /autoscripts/postrm-ucf
parent1c928d2d414cc0423429ad7b8b25cd981d2eeb75 (diff)
dh_ucf: fix test for ucf/ucfr availability and quote filenames
Diffstat (limited to 'autoscripts/postrm-ucf')
-rw-r--r--autoscripts/postrm-ucf10
1 files changed, 5 insertions, 5 deletions
diff --git a/autoscripts/postrm-ucf b/autoscripts/postrm-ucf
index 5b0ef8b..da37572 100644
--- a/autoscripts/postrm-ucf
+++ b/autoscripts/postrm-ucf
@@ -1,12 +1,12 @@
if [ "$1" = "purge" ]; then
for ext in .ucf-new .ucf-old .ucf-dist ""; do
- rm -f #UCFDEST#$ext
+ rm -f "#UCFDEST#$ext"
done
- if [ -x `which ucf 2>/dev/null` ]; then
- ucf --purge #UCFDEST#
+ if [ -x "`which ucf 2>/dev/null`" ]; then
+ ucf --purge "#UCFDEST#"
fi
- if [ -x `which ucfr 2>/dev/null` ]; then
- ucfr --purge #PACKAGE# #UCFDEST#
+ if [ -x "`which ucfr 2>/dev/null`" ]; then
+ ucfr --purge #PACKAGE# "#UCFDEST#"
fi
fi