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

update-smart-drivedb.in: Unify syntax of command substitutions.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5359 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent cb0b2606
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ $Id$
2022-04-24 Christian Franke <franke@computer.org>
update-smart-drivedb.in: Unify syntax of command substitutions.
update-smart-drivedb.in: Don't use 'let' which is bash specific.
update-smart-drivedb.in: Don't use semicolon in sed scripts.
......
......@@ -549,7 +549,7 @@ get_db_version()
v=${x%% *}
test -n "$v" || return 0
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="?"
v="$v/$r"
fi
......@@ -862,7 +862,7 @@ if [ -z "$no_verify" ]; then
fi
# Get version
newver=$(get_db_version "$drivedb.new")
newver=`get_db_version "$drivedb.new"`
if [ -z "$newver" ]; then
if [ -z "$force" ]; then
mv_all "$drivedb" ".new" ".error"
......@@ -907,7 +907,7 @@ if [ -n "$equal" ]; then
fi
# Check branch and file version
oldver=$(get_db_version "$drivedb")
oldver=`get_db_version "$drivedb"`
test -n "$oldver" || oldver="?/?"
if [ "${newver##*/}" = "?" ] \
|| [ "${oldver##*/}" = "?" ] \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment