diff --git a/create_env_and_build.sh b/create_env_and_build.sh index 596269f5..6e36e45c 100644 --- a/create_env_and_build.sh +++ b/create_env_and_build.sh @@ -1,5 +1,13 @@ #!/bin/bash +# The script expects exactly one argument: the name of the conda environment to be created. +# Usage example: +# . ./create_env_and_build.sh + + +#################################### +# helper functions + # set -x set -e @@ -17,6 +25,10 @@ safe_exit() { exit 1 } + +#################################### +# script logic + if [ $# -ne 1 ]; then echo "Usage: $0 " safe_exit