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

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5359 4ea69e1a-61f1-4043-bf83-b5c94c648137
pull/134/head
chrfranke 5 months ago
parent f89ee7ad0f
commit 1d2977dc1c
  1. 2
      smartmontools/ChangeLog
  2. 6
      smartmontools/update-smart-drivedb.in

@ -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##*/}" = "?" ] \

Loading…
Cancel
Save