Skip to content
Snippets Groups Projects
Commit b602ac79 authored by Michael Langguth's avatar Michael Langguth
Browse files

Correction to wrapper_container.sh to allow for execution from no_HPC_scripts-directory.

parent 68e71f17
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,11 @@ VENV_DIR=$WORKING_DIR/virtual_envs/$1 ...@@ -8,11 +8,11 @@ VENV_DIR=$WORKING_DIR/virtual_envs/$1
shift # replaces $1 by $2, so that $@ does not include the name of the virtual environment anymore shift # replaces $1 by $2, so that $@ does not include the name of the virtual environment anymore
# sanity checks # sanity checks
if [[ "${EXE_DIR}" = "HPC_scripts" ]] || [[ "${EXE_DIR}" = "JSC_scripts" ]]; if [[ "${EXE_DIR}" = "HPC_scripts" ]] || [[ "${EXE_DIR}" = "no_HPC_scripts" ]];
then then
echo "The runscript is running under the folder ${EXE_DIR}" echo "The runscript is running under the folder ${EXE_DIR}"
else else
echo "ERROR: Run the setup-script for the enviornment from the HPC_scripts-directory!" echo "ERROR: Run the setup-script for the enviornment from the (no_)HPC_scripts-directory!"
exit exit
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment