Skip to content

Commit

Permalink
fix bash script to find correct MY_CLUSTER
Browse files Browse the repository at this point in the history
  • Loading branch information
nychiang committed Aug 29, 2024
1 parent 7b8cc2b commit 447d8b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BUILD.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ fi

# Some clusters have compute nodes with slightly different hostnames, so we
# set MY_CLUSTER appropriately
if [[ $MY_CLUSTER =~ newell* ]]; then
if [[ $MY_CLUSTER =~ ^newell.* ]]; then
export MY_CLUSTER=newell
elif [[ $MY_CLUSTER =~ dl* ]]; then
elif [[ $MY_CLUSTER =~ ^dl.* ]]; then
export MY_CLUSTER=marianas
elif [[ $MY_CLUSTER =~ dmi* ]]; then
elif [[ $MY_CLUSTER =~ ^dmi.* ]]; then
export MY_CLUSTER=incline
elif [[ $MY_CLUSTER =~ ^dane.* ]]; then
export MY_CLUSTER=dane
fi

module purge
Expand Down

0 comments on commit 447d8b5

Please sign in to comment.