summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2012-07-18 21:13:29 +0200
committerRichard W.M. Jones <rjones@redhat.com>2012-07-18 22:03:43 +0100
commit64acedea081a94352f9b98a808747cbd25e989d4 (patch)
tree7b67a1b995558d98dd4c0e09187043fb4a428c26
parent225c970d589b855b98068e0adfe20f48e30090d2 (diff)
downloadvirt-what-64acedea081a94352f9b98a808747cbd25e989d4.tar.gz
virt-what-64acedea081a94352f9b98a808747cbd25e989d4.tar.xz
virt-what-64acedea081a94352f9b98a808747cbd25e989d4.zip
Remove bash backtick command substitution
The $(command) is more flexible as it allows nesting and easier to read, than `command` notation. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r--virt-what.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/virt-what.in b/virt-what.in
index 4f381ab..d50426a 100644
--- a/virt-what.in
+++ b/virt-what.in
@@ -43,7 +43,7 @@ function usage {
# Handle the command line arguments, if any.
-TEMP=`getopt -o v --long help --long version --long test-root: -n 'virt-what' -- "$@"`
+TEMP=$(getopt -o v --long help --long version --long test-root: -n 'virt-what' -- "$@")
if [ $? != 0 ]; then exit 1; fi
eval set -- "$TEMP"
@@ -78,19 +78,19 @@ fi
# Many fullvirt hypervisors give an indication through CPUID. Use the
# helper program to get this information.
-cpuid=`virt-what-cpuid-helper`
+cpuid=$(virt-what-cpuid-helper)
# Check for various products in the BIOS information.
# Note that dmidecode doesn't exist on non-PC architectures. On these,
# this will return an error which is ignored (error message redirected
# into $dmi variable).
-dmi=`LANG=C dmidecode 2>&1`
+dmi=$(LANG=C dmidecode 2>&1)
# Architecture.
# Note for the purpose of testing, we only call uname with -p option.
-arch=`uname -p`
+arch=$(uname -p)
# Check for VMware.
# cpuid check added by Chetan Loke.