From 7fd016a1cf36b1bab7d5f91c9c31a1117f457120 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Tue, 28 May 2024 13:54:25 -0400 Subject: [PATCH] fix bash syntax --- dev/tasks/matlab/rename_macos_dynamic_libraries.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/tasks/matlab/rename_macos_dynamic_libraries.sh b/dev/tasks/matlab/rename_macos_dynamic_libraries.sh index 9e951546aa228..32084ba6fd6d1 100755 --- a/dev/tasks/matlab/rename_macos_dynamic_libraries.sh +++ b/dev/tasks/matlab/rename_macos_dynamic_libraries.sh @@ -94,19 +94,19 @@ set -ex if [ "$#" -ne 2 ]; then echo "Usage: $0 " - exit + exit 1 fi DYLIB_DIR=${1} ARCH=${2} -if ["$ARCH" == "arm64"]; then +if [ "$ARCH" == "arm64" ]; then IS_ARM64=1 -elif ["$ARCH" == "x64"]; then +elif [ "$ARCH" == "x64" ]; then IS_ARM64=0 else echo " must be arm64 or x64" - exit + exit 1 fi ORIG_DIR=$(pwd)