From cb9eb9119ff5a7db0887a4e01fd5a7c76284f101 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Mon, 24 Feb 2003 02:37:06 +0000 Subject: [PATCH] Show message when old install found. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@810 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/build/unix_installer/install.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/build/unix_installer/install.sh.in b/sc2/build/unix_installer/install.sh.in index 56a2f9d88..0f7bc5701 100644 --- a/sc2/build/unix_installer/install.sh.in +++ b/sc2/build/unix_installer/install.sh.in @@ -152,14 +152,14 @@ if [ -d "${PREFIX}/lib/uqm/content" ]; then else UQM_OLDVERSION=0.1 fi - if [ `expr "$UQM_VERSION" ">" "$UQM_OLDVERSION"` = "0" ]; then + if [ `expr "$UQM_VERSION" ">" "$UQM_OLDVERSION"` = "1" ]; then # NB: 'expr' echoes '1' for true, while sh uses '0' echo "Hey! I see you've got an old version there." echo "You'll be happy to know this one is even better." echo "(yes, this is a hardcoded string in the installer)" echo UQM_INSTALL=UPGRADE - elif [ `expr "$UQM_VERSION" "<" "$UQM_OLDVERSION"` = "0" ]; then + elif [ `expr "$UQM_VERSION" "<" "$UQM_OLDVERSION"` = "1" ]; then UQM_INSTALL=DOWNGRADE else UQM_INSTALL=REINSTALL