From fdbc0d99b9e881168733c2591c9404ac9917d8fa Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sun, 24 Apr 2022 15:11:30 +0000
Subject: [PATCH] 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
---
 smartmontools/ChangeLog               | 2 ++
 smartmontools/update-smart-drivedb.in | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index a0f2ff1bb..93da48634 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -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.
diff --git a/smartmontools/update-smart-drivedb.in b/smartmontools/update-smart-drivedb.in
index caeba9f1e..276a41711 100644
--- a/smartmontools/update-smart-drivedb.in
+++ b/smartmontools/update-smart-drivedb.in
@@ -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##*/}" = "?" ] \
-- 
GitLab