Skip to content

Commit

Permalink
add branch
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Apr 30, 2024
1 parent 4146e2b commit 32445ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/update_environment.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/bin/bash

BRANCH=main

if [ $# -lt 1 ]; then
echo "please specify the environments (i.e., 'wp3', 'wp4', and/or 'wp5')"
exit 1
fi

create_environment ()(
URL1="https://raw.githubusercontent.com/bopen/c3s-eqc-toolbox-template/main/environment.yml"
URL2="https://raw.githubusercontent.com/bopen/c3s-eqc-toolbox-template/main/environments/environment_$1.yml"
URL1="https://raw.githubusercontent.com/bopen/c3s-eqc-toolbox-template/$BRANCH/environment.yml"
URL2="https://raw.githubusercontent.com/bopen/c3s-eqc-toolbox-template/$BRANCH/environments/environment_$1.yml"
DATE=$(date --iso-8601=seconds)
TMP1=$(mktemp --suffix=.yml)
TMP2=$(mktemp --suffix=.yml)
Expand Down

0 comments on commit 32445ff

Please sign in to comment.