From 6858e123497aee69dedce5d22fcacec99c7043b4 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 10 Jul 2004 01:03:04 +0000 Subject: Fix bashisms in maintainer scripts (thanks, David Weinehall; partial fix for #258517). --- debian/preinst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'debian/preinst') diff --git a/debian/preinst b/debian/preinst index 320d4df2a..e22d0aa5d 100644 --- a/debian/preinst +++ b/debian/preinst @@ -3,11 +3,11 @@ action=$1 version=$2 -if [ -d /etc/ssh-nonfree -a ! -d /etc/ssh ]; then +if [ -d /etc/ssh-nonfree ] && [ ! -d /etc/ssh ]; then version=1.2.27 fi -if [ "$action" = upgrade -o "$action" = install ] +if [ "$action" = upgrade ] || [ "$action" = install ] then # check if debconf is missing if ! test -f /usr/share/debconf/confmodule @@ -39,7 +39,7 @@ EOF # work around for missing debconf db_get() { : ; } RET=true - if [ -d /etc/ssh-nonfree -a ! -d /etc/ssh ]; then + if [ -d /etc/ssh-nonfree ] && [ ! -d /etc/ssh ]; then cp -a /etc/ssh-nonfree /etc/ssh fi else -- cgit v1.2.3