mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 05:37:04 +00:00
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()
|
judge()
|
||||||
{
|
{
|
||||||
out=`testfun "$@"`
|
out="$(testfun "$@")"
|
||||||
|
|
||||||
tff=${out##* TFF:}; tff=${tff%% *}
|
tff=${out##* TFF:}; tff=${tff%% *}
|
||||||
bff=${out##* BFF:}; bff=${bff%% *}
|
bff=${out##* BFF:}; bff=${bff%% *}
|
||||||
|
@ -21,7 +21,7 @@ done
|
|||||||
# Extract revision number from file used by daily tarball snapshots
|
# Extract revision number from file used by daily tarball snapshots
|
||||||
# or from "git describe" output
|
# or from "git describe" output
|
||||||
git_revision=$(cat snapshot_version 2> /dev/null)
|
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
|
test $git_revision && git_revision=git-$git_revision
|
||||||
version="$git_revision"
|
version="$git_revision"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user