mirror of https://github.com/mpv-player/mpv
TOOLS, version.sh: shellcheck: replace `cmd` with $(cmd)
Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
parent
ba2a3f40ac
commit
ec2c6a17dc
|
@ -30,7 +30,7 @@ testfun()
|
|||
|
||||
judge()
|
||||
{
|
||||
out=`testfun "$@"`
|
||||
out="$(testfun "$@")"
|
||||
|
||||
tff=${out##* TFF:}; tff=${tff%% *}
|
||||
bff=${out##* BFF:}; bff=${bff%% *}
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue