From: Mao Zhongyi Date: Mon, 15 Oct 2018 09:17:35 +0000 (+0800) Subject: git-submodule.sh: Modern shell scripting (use $() instead of ``) X-Git-Tag: v3.1.0-rc0~49^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a436cd882691145673afe3a1a3872650bb760506;p=thirdparty%2Fqemu.git 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 Reviewed-by: Thomas Huth Signed-off-by: Thomas Huth --- diff --git a/scripts/git-submodule.sh b/scripts/git-submodule.sh index 807ca0b4f80..98ca0f2737a 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 $? ;;