From f3fcb062f0f71209d3bdcb1a8ab7b65ffdc5d53b Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Tue, 10 Aug 2021 20:01:02 +1000 Subject: [PATCH] Resolve shellcheck code warnings --- tools/setup_buildenv_ubuntu20.04.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/setup_buildenv_ubuntu20.04.sh b/tools/setup_buildenv_ubuntu20.04.sh index e9d2820c2..0152a5c77 100644 --- a/tools/setup_buildenv_ubuntu20.04.sh +++ b/tools/setup_buildenv_ubuntu20.04.sh @@ -16,7 +16,7 @@ do fi done -if [[ `lsb_release -rs` != "20.04" ]]; then +if [[ $(lsb_release -rs) != "20.04" ]]; then echo "ERROR: Not running on Ubuntu 20.04!" echo "Terminating the script now." exit 1 @@ -24,7 +24,7 @@ fi echo "=== Step 1: Checking if i386 requirement is satisfied ===" OUTPUT=x$(dpkg --print-foreign-architectures 2> /dev/null | grep i386) || : -if [ $OUTPUT != "xi386" ]; then +if [ "$OUTPUT" != "xi386" ]; then echo "Need to install i386 architecture first." I386ARCH="no" sudo dpkg --add-architecture i386