Skip to content

Commit 7fd016a

Browse files
committed
fix bash syntax
1 parent 90889e3 commit 7fd016a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tasks/matlab/rename_macos_dynamic_libraries.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@ set -ex
9494

9595
if [ "$#" -ne 2 ]; then
9696
echo "Usage: $0 <dylib-dir> <arch>"
97-
exit
97+
exit 1
9898
fi
9999

100100
DYLIB_DIR=${1}
101101
ARCH=${2}
102102

103-
if ["$ARCH" == "arm64"]; then
103+
if [ "$ARCH" == "arm64" ]; then
104104
IS_ARM64=1
105-
elif ["$ARCH" == "x64"]; then
105+
elif [ "$ARCH" == "x64" ]; then
106106
IS_ARM64=0
107107
else
108108
echo "<arch> must be arm64 or x64"
109-
exit
109+
exit 1
110110
fi
111111

112112
ORIG_DIR=$(pwd)

0 commit comments

Comments
 (0)