From 094ad1a17bcba7a78d874ee4dae8c2f68e955d57 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 20 Apr 2024 19:44:50 +0200 Subject: [PATCH] Require input arguments --- setup/macos/build.sh | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) 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