summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>2002-06-21 01:04:14 +0000
committerjoey <joey>2002-06-21 01:04:14 +0000
commit9d10bc252fde1f9e093d859ece3025c1267ae59f (patch)
treeff1e294608922e0e4ff2022f307efed6979f0e9c /autoscripts
parentc84545b9234bf1d233983d5ae59ab59d573a5460 (diff)
downloaddebhelper-9d10bc252fde1f9e093d859ece3025c1267ae59f.tar.gz
r534: * Stupid, evil typo.
* Fixed the tests clint didn't show me.
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-init-norestart2
-rw-r--r--autoscripts/postinst-init-norestart-invoke2
-rw-r--r--autoscripts/prerm-doc2
-rw-r--r--autoscripts/prerm-doc-base2
4 files changed, 4 insertions, 4 deletions
diff --git a/autoscripts/postinst-init-norestart b/autoscripts/postinst-init-norestart
index 4f1c63f9..a5741654 100644
--- a/autoscripts/postinst-init-norestart
+++ b/autoscripts/postinst-init-norestart
@@ -1,7 +1,7 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
update-rc.d #SCRIPT# #INITPARMS# >/dev/null
if [ "$1" = "configure" ]; then
- if [ -z "$2" -o "$2" = "<unknown>" ]; then
+ if [ -z "$2" ] || [ "$2" = "<unknown>" ]; then
/etc/init.d/#SCRIPT# start
fi
fi
diff --git a/autoscripts/postinst-init-norestart-invoke b/autoscripts/postinst-init-norestart-invoke
index 440e8c78..be1751c8 100644
--- a/autoscripts/postinst-init-norestart-invoke
+++ b/autoscripts/postinst-init-norestart-invoke
@@ -1,7 +1,7 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
update-rc.d #SCRIPT# #INITPARMS# >/dev/null
if [ "$1" = "configure" ]; then
- if [ -z "$2" -o "$2" = "<unknown>" ]; then
+ if [ -z "$2" ] || [ "$2" = "<unknown>" ]; then
invoke-rc.d #SCRIPT# start
fi
fi
diff --git a/autoscripts/prerm-doc b/autoscripts/prerm-doc
index 05abb495..bd778683 100644
--- a/autoscripts/prerm-doc
+++ b/autoscripts/prerm-doc
@@ -1,4 +1,4 @@
-if [ "$1" = "upgrade" ] || [ "$1" = "remove" ] && [ -L /usr/doc/#PACKAGE#
+if [ "$1" = "upgrade" ] || [ "$1" = "remove" ] && [ -L /usr/doc/#PACKAGE# ]
then
rm -f /usr/doc/#PACKAGE#
fi
diff --git a/autoscripts/prerm-doc-base b/autoscripts/prerm-doc-base
index 7ec95b7c..c57d999a 100644
--- a/autoscripts/prerm-doc-base
+++ b/autoscripts/prerm-doc-base
@@ -1,4 +1,4 @@
-if [ "$1" = remove -o "$1" = upgrade ] && \
+if [ "$1" = remove ] || [ "$1" = upgrade ] && \
which install-docs >/dev/null 2>&1; then
install-docs -r #DOC-ID#
fi