diff debian/preinst @ 324:5ec39beae9c5 noffle

[svn] cleanup
author godisch
date Sat, 22 Feb 2003 21:54:34 +0000
parents 85bf9f705e70
children b8a73c90bfde
line wrap: on
line diff
--- a/debian/preinst	Sat Feb 22 21:09:23 2003 +0000
+++ b/debian/preinst	Sat Feb 22 21:54:34 2003 +0000
@@ -1,10 +1,9 @@
 #!/bin/sh
-# $Id: preinst 446 2003-02-19 19:06:45Z godisch $
+# $Id: preinst 459 2003-02-22 21:54:34Z godisch $
 
 set -e
 
-case "$1" in
-install|upgrade)
+if [ "$1" = install -o "$1" = upgrade ]; then
 	# this directory may still exist because of old lock files,
 	# make sure the symlink can be installed
 	if [ -d /var/spool/noffle/lock ]; then
@@ -14,13 +13,6 @@
 			mv /var/spool/noffle/lock /var/lock/noffle || :
 		fi
 	fi
-	;;
-abort-upgrade)
-	;;
-*)
-	echo "preinst called with unknown argument '$1'" >&2
-	exit 1
-	;;
-esac
+fi
 
 exit 0