diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-20 08:53:48 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-20 08:53:48 +0100 |
commit | a079269166d120bcbcb33d34f4b1c8f60d102e32 (patch) | |
tree | c3ae8596608e94e58ab1624ef78b8ef33c5323a0 /bin/update.sh | |
parent | a8ffab3f4ff54af41c9041a30eb989954d6ffc17 (diff) |
Fix version comparisons with -stable suffix (#1488876)
Diffstat (limited to 'bin/update.sh')
-rwxr-xr-x | bin/update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/update.sh b/bin/update.sh index 59aa596dd..2015aa904 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -34,7 +34,7 @@ if (!$opts['version']) { $opts['version'] = $input; } -if ($opts['version'] && version_compare($opts['version'], RCMAIL_VERSION, '>')) +if ($opts['version'] && version_compare(version_parse($opts['version']), version_parse(RCMAIL_VERSION), '>')) die("Nothing to be done here. Bye!\n"); @@ -169,7 +169,7 @@ if ($RCI->configured) { } // index contacts for fulltext searching - if (version_compare($opts['version'], '0.6', '<')) { + if (version_compare(version_parse($opts['version']), '0.6.0', '<')) { system(INSTALL_PATH . 'bin/indexcontacts.sh'); } |