Skip to content
Snippets Groups Projects
Unverified Commit 17731ae8 authored by Tom Herbers's avatar Tom Herbers Committed by GitHub
Browse files

scripts/container.sh: allow for empty Branch Names and git errors (#2363)

Resolves #2362
parent 0d0801da
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,8 @@ set -euo pipefail
cd "$(dirname "$0")/.."
# normalize branch name to reflect a valid image name
BRANCH=$(git branch --show-current | sed 's/[^a-z0-9-]/_/ig')
TAG=gluon:${BRANCH}
BRANCH=$(git branch --show-current 2>/dev/null | sed 's/[^a-z0-9-]/_/ig')
TAG="gluon:${BRANCH:-latest}"
if [ "$(command -v podman)" ]
then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment