From 05035a1ff45c505012028786a7f8fc5b3e5ea856 Mon Sep 17 00:00:00 2001 From: Giordano Salvador <73959795+e3m3@users.noreply.github.com> Date: Sat, 14 Sep 2024 02:15:48 -0400 Subject: [PATCH] Fix case switches in MacOS 14 build scripts --- scripts/build-and-test-macos14-container.sh | 8 ++++---- scripts/build-and-test-macos14-native.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/build-and-test-macos14-container.sh b/scripts/build-and-test-macos14-container.sh index 4581c6c..85e085a 100644 --- a/scripts/build-and-test-macos14-container.sh +++ b/scripts/build-and-test-macos14-container.sh @@ -7,10 +7,10 @@ eval "$(${HOMEBREW_HOME}/bin/brew shellenv)" brew install podman -case ${BUILD_MODE} - debug) build_mode= - release) build_mode=--release - *) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1 +case ${BUILD_MODE} in + debug) build_mode= ;; + release) build_mode=--release ;; + *) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1 ;; esac podman machine init diff --git a/scripts/build-and-test-macos14-native.sh b/scripts/build-and-test-macos14-native.sh index 0d72203..001b92e 100644 --- a/scripts/build-and-test-macos14-native.sh +++ b/scripts/build-and-test-macos14-native.sh @@ -32,10 +32,10 @@ export HOMEBREW_HOME export LLVM_HOME export PYTHON_VENV_PATH -case ${BUILD_MODE} - debug) build_mode= - release) build_mode=--release - *) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1 +case ${BUILD_MODE} in + debug) build_mode= ;; + release) build_mode=--release ;; + *) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1 ;; esac cargo build --verbose ${BUILD_MODE}