Check that old version exists before deciding this is an upgrade

This commit is contained in:
Daniel James 2012-08-02 15:00:12 +01:00
parent d5efcb359f
commit f99574b723
1 changed files with 1 additions and 1 deletions

2
debian/postinst vendored
View File

@ -209,7 +209,7 @@ case "$1" in
echo "Reconfiguration complete."
else
if [[ "${OLDVERSION:0:3}" < "1.9" ]]; then
if [ -n "$OLDVERSION" ] && [[ "${OLDVERSION:0:3}" < "1.9" ]]; then
echo "Upgrades from Airtime versions before 1.9.0 are not supported. Please back up your files and perform a clean install."
else