Skip to content

Commit

Permalink
When setting MET_GIT_NAME, replace embedded slashes with underscores.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Feb 7, 2024
1 parent afb4576 commit ef2ac2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scripts/docker/build_met_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ source internal/scripts/environment/development.docker

# Check whether MET_GIT_NAME is defined
if [ -z ${MET_GIT_NAME+x} ]; then
MET_GIT_NAME=`git name-rev --name-only HEAD`
echo "Setting MET_GIT_NAME=${MET_GIT_NAME} based on the current branch."
MET_GIT_NAME=`git name-rev --name-only HEAD | sed 's%/%_%g'`
echo "Setting MET_GIT_NAME=${MET_GIT_NAME} based on the current revision."
fi

# Check whether MET_CONFIG_OPTS is defined
Expand Down

0 comments on commit ef2ac2f

Please sign in to comment.