From 7aac0e88606ce453b111ce80419dc58519db05ad Mon Sep 17 00:00:00 2001 From: Rhys Kidd Date: Mon, 30 Oct 2017 09:09:41 -0400 Subject: assembler: Fix bashism in run-test.sh [[ a != b ]] is a bashism. As it's just comparing $1 to an empty string, use -n with a normal [ ]. Noticed whilst testing meson builds. /bin/sh is apparently dash in Intel's CI. v2: - keep this as a /bin/sh script (Joonas Lahtinen) Fixes: c3863e19 ("assembler/test: Prep work for meson") CC: Daniel Vetter CC: Petri Latvala Reviewed-by: Joonas Lahtinen Signed-off-by: Rhys Kidd --- assembler/test/run-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assembler') diff --git a/assembler/test/run-test.sh b/assembler/test/run-test.sh index 0a5252a8..b06e1044 100644 --- a/assembler/test/run-test.sh +++ b/assembler/test/run-test.sh @@ -5,7 +5,7 @@ BUILDDIR=${top_builddir-`pwd`} test="TEST" -if [[ "$1" != "" ]] ; then +if [ -n "$1" ] ; then test="$1" fi -- cgit v1.2.3