[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] git-submodule.sh: Modern shell scripting (use $
From: |
Mao Zhongyi |
Subject: |
[Qemu-devel] [PATCH 2/3] git-submodule.sh: Modern shell scripting (use $() instead of ``) |
Date: |
Mon, 15 Oct 2018 14:51:56 +0800 |
Various shell files contain a mix between obsolete `` and
modern $(); use of `` is only required when using /bin/sh
on Solaris. It would be nice to convert to using $()
everywhere, or at least in all bash scripts, as well as in
all scripts that are known to not be run on Solaris.
Signed-off-by: Mao Zhongyi <address@hidden>
---
scripts/git-submodule.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/git-submodule.sh b/scripts/git-submodule.sh
index 807ca0b4f8..d452149c1a 100755
--- a/scripts/git-submodule.sh
+++ b/scripts/git-submodule.sh
@@ -59,7 +59,7 @@ status)
fi
test -f "$substat" || exit 1
- CURSTATUS=`$GIT submodule status $modules`
+ CURSTATUS=$($GIT submodule status $modules)
OLDSTATUS=`cat $substat`
test "$CURSTATUS" = "$OLDSTATUS"
exit $?
--
2.17.1