Skip to content
Snippets Groups Projects
Commit 4c6cfeed authored by chrfranke's avatar chrfranke
Browse files

update-smart-drivedb.in: Don't use semicolon in sed scripts.

This also fixes a syntax error if sed requires ';' before '}'.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5357 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 90131aee
No related branches found
No related tags found
No related merge requests found
$Id$
2022-04-24 Christian Franke <franke@computer.org>
update-smart-drivedb.in: Don't use semicolon in sed scripts.
This also fixes a syntax error if sed requires ';' before '}'.
2022-04-23 Gabriele Pohl <contact@dipohl.de>
drivedb.h:
......
......@@ -542,8 +542,10 @@ gpg_verify()
get_db_version()
{
local r v x
x=$(sed -n '/^[ {]*"VERSION: *[^"]*"/{s,^[ {]*"VERSION: \([1-9][./0-9]* [^"]*\)".*$,\1,p;q}' "$1") \
|| return 1
x=`sed -n '/^[ {]*"VERSION: *[^"]*"/{
s,^[ {]*"VERSION: \([1-9][./0-9]* [^"]*\)".*$,\1,p
q
}' "$1"` || return 1
v=${x%% *}
test -n "$v" || return 0
if [ "${v%/*}" = "$v" ]; then # trunk: get rev from expanded SVN-Id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment