mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
scripts: Use $(..) instead of deprecated ..
This fixes these warnings from shellcheck: ^-- SC2006: Use $(..) instead of deprecated `..` Update also a comment using the same pattern. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
8913885761
commit
bbd908025c
6 changed files with 11 additions and 11 deletions
|
@ -33,7 +33,7 @@ if test -e "$output"; then
|
|||
fi
|
||||
|
||||
for input; do
|
||||
arrayname=xml_feature_`echo $input | sed 's,.*/,,; s/[-.]/_/g'`
|
||||
arrayname=xml_feature_$(echo $input | sed 's,.*/,,; s/[-.]/_/g')
|
||||
|
||||
${AWK:-awk} 'BEGIN { n = 0
|
||||
printf "#include \"qemu/osdep.h\"\n"
|
||||
|
@ -67,8 +67,8 @@ echo >> $output
|
|||
echo "const char *const xml_builtin[][2] = {" >> $output
|
||||
|
||||
for input; do
|
||||
basename=`echo $input | sed 's,.*/,,'`
|
||||
arrayname=xml_feature_`echo $input | sed 's,.*/,,; s/[-.]/_/g'`
|
||||
basename=$(echo $input | sed 's,.*/,,')
|
||||
arrayname=xml_feature_$(echo $input | sed 's,.*/,,; s/[-.]/_/g')
|
||||
echo " { \"$basename\", $arrayname }," >> $output
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue