TOOLS, version.sh: shellcheck: replace `cmd` with $(cmd)

Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
Ben Boeckel 2014-09-15 20:49:09 -04:00 committed by wm4
parent ba2a3f40ac
commit ec2c6a17dc
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ testfun()
judge()
{
out=`testfun "$@"`
out="$(testfun "$@")"
tff=${out##* TFF:}; tff=${tff%% *}
bff=${out##* BFF:}; bff=${bff%% *}

View File

@ -21,7 +21,7 @@ done
# Extract revision number from file used by daily tarball snapshots
# or from "git describe" output
git_revision=$(cat snapshot_version 2> /dev/null)
test $git_revision || test ! -e .git || git_revision=`git rev-parse --short HEAD`
test $git_revision || test ! -e .git || git_revision=$(git rev-parse --short HEAD)
test $git_revision && git_revision=git-$git_revision
version="$git_revision"