summaryrefslogtreecommitdiff
path: root/bin/installto.sh
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-12-20 08:53:48 +0100
committerAleksander Machniak <alec@alec.pl>2012-12-20 08:53:48 +0100
commita079269166d120bcbcb33d34f4b1c8f60d102e32 (patch)
treec3ae8596608e94e58ab1624ef78b8ef33c5323a0 /bin/installto.sh
parenta8ffab3f4ff54af41c9041a30eb989954d6ffc17 (diff)
Fix version comparisons with -stable suffix (#1488876)
Diffstat (limited to 'bin/installto.sh')
-rwxr-xr-xbin/installto.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/installto.sh b/bin/installto.sh
index de96bf004..e6cf79d7d 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -35,7 +35,7 @@ if (!preg_match('/define\(.RCMAIL_VERSION.,\s*.([0-9.]+[a-z-]*)/', $iniset, $m))
$oldversion = $m[1];
-if (version_compare($oldversion, RCMAIL_VERSION, '>='))
+if (version_compare(version_parse($oldversion), version_parse(RCMAIL_VERSION), '>='))
die("Installation at target location is up-to-date!\n");
echo "Upgrading from $oldversion. Do you want to continue? (y/N)\n";