Show message when old install found.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@810 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -152,14 +152,14 @@ if [ -d "${PREFIX}/lib/uqm/content" ]; then
|
|||||||
else
|
else
|
||||||
UQM_OLDVERSION=0.1
|
UQM_OLDVERSION=0.1
|
||||||
fi
|
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'
|
# NB: 'expr' echoes '1' for true, while sh uses '0'
|
||||||
echo "Hey! I see you've got an old version there."
|
echo "Hey! I see you've got an old version there."
|
||||||
echo "You'll be happy to know this one is even better."
|
echo "You'll be happy to know this one is even better."
|
||||||
echo "(yes, this is a hardcoded string in the installer)"
|
echo "(yes, this is a hardcoded string in the installer)"
|
||||||
echo
|
echo
|
||||||
UQM_INSTALL=UPGRADE
|
UQM_INSTALL=UPGRADE
|
||||||
elif [ `expr "$UQM_VERSION" "<" "$UQM_OLDVERSION"` = "0" ]; then
|
elif [ `expr "$UQM_VERSION" "<" "$UQM_OLDVERSION"` = "1" ]; then
|
||||||
UQM_INSTALL=DOWNGRADE
|
UQM_INSTALL=DOWNGRADE
|
||||||
else
|
else
|
||||||
UQM_INSTALL=REINSTALL
|
UQM_INSTALL=REINSTALL
|
||||||
|
|||||||
Reference in New Issue
Block a user