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:27:26 +0100
commit9e46fb535ddce461a11f57d4ce75a43c3ad651e8 (patch)
treeec91ad9cb3b4d4fa7699f5755b9ece5a35af2d2d /bin
parent2187b2b7d845f6c5b50e380447c034c830454e75 (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