From d4de0e1219e02b8ecd24549f0f3f65d500a7d6b5 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 18 May 2020 11:10:35 +0200 Subject: [PATCH] Tools: fix ubuntu setup script This fixes the error: line 149: [: missing `]' --- Tools/setup/ubuntu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/setup/ubuntu.sh b/Tools/setup/ubuntu.sh index 9055f7f8e8..4600166714 100755 --- a/Tools/setup/ubuntu.sh +++ b/Tools/setup/ubuntu.sh @@ -146,7 +146,7 @@ if [ $(which arm-none-eabi-gcc) ]; then GCC_FOUND_VER=$(echo $GCC_VER_STR | grep -c "${NUTTX_GCC_VERSION}") fi - if [ ! ${GCC_FOUND_VER+x} && $GCC_FOUND_VER -eq "1" ]; then + if [[ ! -z $GCC_FOUND_VER && $GCC_FOUND_VER -eq "1" ]]; then echo "arm-none-eabi-gcc-${NUTTX_GCC_VERSION} found, skipping installation" else