Skip to content
Snippets Groups Projects
Commit 2d753395 authored by chrfranke's avatar chrfranke
Browse files

update-smart-drivedb.in: Fix regexp quoting.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5315 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 8cc73a3d
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ $Id$ ...@@ -2,6 +2,8 @@ $Id$
2022-02-02 Christian Franke <franke@computer.org> 2022-02-02 Christian Franke <franke@computer.org>
update-smart-drivedb.in: Fix regexp quoting.
os_linux.cpp: Enhance device scan range to '/dev/sdzz'. os_linux.cpp: Enhance device scan range to '/dev/sdzz'.
smartd.8.in: Update related documentation. smartd.8.in: Update related documentation.
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# Home page of code is: https://www.smartmontools.org # Home page of code is: https://www.smartmontools.org
# #
# Copyright (C) 2010-21 Christian Franke # Copyright (C) 2010-22 Christian Franke
# #
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# #
...@@ -538,7 +538,7 @@ get_db_version() ...@@ -538,7 +538,7 @@ get_db_version()
v=${x%% *} v=${x%% *}
test -n "$v" || return 0 test -n "$v" || return 0
if [ "${v%/*}" = "$v" ]; then # trunk: get rev from expanded SVN-Id if [ "${v%/*}" = "$v" ]; then # trunk: get rev from expanded SVN-Id
r=$(echo "$x" | sed -n 's,^[^$]*$Id: drivedb\.h \([1-9][0-9]*\) .*$,\1,p') r=$(echo "$x" | sed -n 's,^[^$]*\$''Id: drivedb\.h \([1-9][0-9]*\) .*$,\1,p')
test -n "$r" || r="?" test -n "$r" || r="?"
v="$v/$r" v="$v/$r"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment