Require input arguments
This commit is contained in:
+6
-15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user