Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edufnt committed Oct 17, 2024
1 parent 8c05eae commit 5608b01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions create_env_and_build.sh
Original file line number Diff line number Diff line change
@@ -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 <env-name>


####################################
# helper functions

# set -x
set -e

Expand All @@ -17,6 +25,10 @@ safe_exit() {
exit 1
}


####################################
# script logic

if [ $# -ne 1 ]; then
echo "Usage: $0 <conda-environment-name>"
safe_exit
Expand Down

0 comments on commit 5608b01

Please sign in to comment.