Require input arguments

This commit is contained in:
Veronica Berglyd Olsen
2024-04-20 19:44:50 +02:00
parent c362848b86
commit 094ad1a17b
+6 -15
View File
@@ -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