From ef2ac2fd255a1dd5ba284ad532d2299f64ca0bea Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Wed, 7 Feb 2024 12:43:14 -0700 Subject: [PATCH] When setting MET_GIT_NAME, replace embedded slashes with underscores. --- internal/scripts/docker/build_met_docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/scripts/docker/build_met_docker.sh b/internal/scripts/docker/build_met_docker.sh index 3d7b827494..f1b7536e70 100755 --- a/internal/scripts/docker/build_met_docker.sh +++ b/internal/scripts/docker/build_met_docker.sh @@ -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