Skip to content

Commit

Permalink
Merge pull request #70 from rlcee/ups_220810
Browse files Browse the repository at this point in the history
add backup and protection for finding flavor
  • Loading branch information
rlcee authored Aug 10, 2022
2 parents cdfcc61 + 0115af2 commit 4db075a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/museSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ if ! which ups >& /dev/null ; then
fi

export MUSE_FLAVOR=$( ups flavor | awk -F- '{print $3}' )
if [[ -z "$MUSE_FLAVOR" && -n "$UPS_OVERRIDE" ]]; then
export MUSE_FLAVOR=$( echo $UPS_OVERRIDE | awk -F- '{print $3}' )
fi
if [ -z "$MUSE_FLAVOR" ]; then
echo "ERROR - could not run ups flavor, you might need to set UPS_OVERRIDE"
errorMessage
return 1
fi

#
# parse arguments - everything should be a qualifier
Expand Down

0 comments on commit 4db075a

Please sign in to comment.