diff --git a/setup/macos/build.sh b/setup/macos/build.sh index eb7f5481..5afb161d 100755 --- a/setup/macos/build.sh +++ b/setup/macos/build.sh @@ -1,22 +1,13 @@ #! /bin/bash -if [ -z "$1" ]; then - PYTHON="3.11" -else - PYTHON="$1" +if [[ -z "$1" || -z "$2" || -z "$3" ]]; then + echo "Not enouch input arguments" + exit 1 fi -if [ -z "$2" ]; then - ARCH="amd64" -else - ARCH="$2" -fi - -if [ -z "$3" ]; then - CONDA="x86_64" -else - CONDA="$3" -fi +PYTHON="$1" +ARCH="$2" +CONDA="$3" # Use RAM disk if possible if [ -d /dev/shm ]; then