diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-02-21 10:28:33 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-02-21 10:28:33 +0100 |
commit | 63cf4fc823b10212663361d2ede0a82f3ccc8e30 (patch) | |
tree | 60a2914b2ece3434f6ce3f425a7655c1a5ffe094 /bin | |
parent | 7c851e669e660655b6d7bd59dd2cd7cfe7d5fff3 (diff) |
If version is not provided assume RCMAIL_VERSION (#1488933)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/update.sh b/bin/update.sh index be952cc2f..05956b933 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -32,9 +32,11 @@ if (!$opts['version']) { echo "What version are you upgrading from? Type '?' if you don't know.\n"; if (($input = trim(fgets(STDIN))) && preg_match('/^[0-9.]+[a-z-]*$/', $input)) $opts['version'] = $input; + else + $opts['version'] = RCMAIL_VERSION; } -if ($opts['version'] && version_compare(version_parse($opts['version']), version_parse(RCMAIL_VERSION), '>')) +if ($opts['version'] && version_compare(version_parse($opts['version']), version_parse(RCMAIL_VERSION), '>=')) die("Nothing to be done here. Bye!\n"); |