diff options
author | Mao Zhongyi <maozhongyi@cmss.chinamobile.com> | 2018-10-15 17:17:35 +0800 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2018-10-16 18:34:19 +0200 |
commit | a436cd882691145673afe3a1a3872650bb760506 (patch) | |
tree | 6f049ab4327831759ab1fa70c7b510fc85421b33 /scripts | |
parent | 934821ebae41e59cb2a6c5c7ec99927255117491 (diff) | |
download | qemu-a436cd882691145673afe3a1a3872650bb760506.zip qemu-a436cd882691145673afe3a1a3872650bb760506.tar.gz qemu-a436cd882691145673afe3a1a3872650bb760506.tar.bz2 |
git-submodule.sh: Modern shell scripting (use $() instead of ``)
Various shell files contain a mix between obsolete ``
and modern $(); It would be nice to convert to using $()
everywhere.
Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git-submodule.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/git-submodule.sh b/scripts/git-submodule.sh index 807ca0b..98ca0f2 100755 --- a/scripts/git-submodule.sh +++ b/scripts/git-submodule.sh @@ -59,8 +59,8 @@ status) fi test -f "$substat" || exit 1 - CURSTATUS=`$GIT submodule status $modules` - OLDSTATUS=`cat $substat` + CURSTATUS=$($GIT submodule status $modules) + OLDSTATUS=$(cat $substat) test "$CURSTATUS" = "$OLDSTATUS" exit $? ;; |