aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Anders Kaseorg <andersk@mit.edu>2016-10-30 02:05:31 -0400
committerGravatar John Hood <cgull@glup.org>2016-11-04 03:15:03 -0400
commit8a8f2b29ca45a797eadbdb0600982c174174ab5e (patch)
tree2538a435c4445f783989f68e2583046c2953f796 /scripts
parent3b21cd24259beae786dc95b92be6c94b7e7d04c9 (diff)
Fix most shell hygiene issues found by shellcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wrap-compiler-for-flag-check2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wrap-compiler-for-flag-check b/scripts/wrap-compiler-for-flag-check
index 579f577..d2e9dd8 100755
--- a/scripts/wrap-compiler-for-flag-check
+++ b/scripts/wrap-compiler-for-flag-check
@@ -7,7 +7,7 @@
# Ideally the search string would also include 'clang: ' but this output might
# depend on clang's argv[0].
-if out=`"$@" 2>&1`; then
+if out=$("$@" 2>&1); then
echo "$out"
if echo "$out" | grep 'warning: argument unused' >/dev/null; then
echo "$0: found clang warning"