summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-02-19 14:27:26 +0100
committerAleksander Machniak <alec@alec.pl>2013-02-19 14:29:42 +0100
commit0ffb1a7af33bddd30d52080c99e5cf4fd5757416 (patch)
treedc95510a813cf22aa109b7c04d9ce00fc166dc99 /bin
parent203251838b1917bd79c3482b0381ac50f22b3877 (diff)
Fix typo in DB version strings (there should be no .sql suffix)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/updatedb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/updatedb.sh b/bin/updatedb.sh
index 4b922ea83..c856e0d63 100755
--- a/bin/updatedb.sh
+++ b/bin/updatedb.sh
@@ -63,7 +63,7 @@ if (in_array('system', (array)$DB->list_tables())) {
$opts['package'] . '-version');
$row = $DB->fetch_array();
- $version = $row[0];
+ $version = preg_replace('/[^0-9]/', '', $row[0]);
}
// DB version not found, but release version is specified