From 99f6055c55c8c62078ca7960ce514a0404be38d0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 24 May 2018 16:53:34 -0700 Subject: [PATCH] Fix warnings reported by bashate. See https://pypi.org/project/bashate/ for more info. --- cranelift/test-all.sh | 2 +- cranelift/test-no_std.sh | 5 ++--- lib/codegen/meta/check.sh | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cranelift/test-all.sh b/cranelift/test-all.sh index 96e81f1864..2f25e26f33 100755 --- a/cranelift/test-all.sh +++ b/cranelift/test-all.sh @@ -18,7 +18,7 @@ export PYTHONDONTWRITEBYTECODE=1 cd $(dirname "$0") topdir=$(pwd) -function banner() { +function banner { echo "====== $@ ======" } diff --git a/cranelift/test-no_std.sh b/cranelift/test-no_std.sh index 8c4d6ecfc1..8ca93f5d04 100755 --- a/cranelift/test-no_std.sh +++ b/cranelift/test-no_std.sh @@ -8,15 +8,14 @@ set -euo pipefail cd $(dirname "$0") topdir=$(pwd) -function banner() { +function banner { echo "====== $@ ======" } # Test those packages which have no_std support. LIBS="codegen frontend wasm native module simplejit umbrella" cd "$topdir" -for LIB in $LIBS -do +for LIB in $LIBS; do banner "Rust unit tests in $LIB" cd "lib/$LIB" diff --git a/lib/codegen/meta/check.sh b/lib/codegen/meta/check.sh index fa86bf0804..d8f2178f43 100755 --- a/lib/codegen/meta/check.sh +++ b/lib/codegen/meta/check.sh @@ -2,7 +2,7 @@ set -euo pipefail cd $(dirname "$0") -function runif() { +function runif { if command -v "$1" > /dev/null; then echo " === $1 ===" "$@"