Skip to content

Commit 4b67aa5

Browse files
committed
Update safe branch
1 parent 0f6e535 commit 4b67aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export GIT_VERSION ?= $(shell git rev-parse --short HEAD)
1818
# Auto-detect and sanitize current git branch
1919
BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
2020
# Replace "/" and other non-alphanumeric characters with "-"
21-
SAFE_BRANCH := $(shell echo "$(BRANCH)" | sed 's/[^A-Za-z0-9-]/-/g')
21+
SAFE_BRANCH := $(shell echo "$(BRANCH)" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]/-/g')
2222
FORCE_DEPLOY ?= false
2323
SITE_URL ?= "https://$(SAFE_BRANCH).ep-preview.click"
2424

0 commit comments

Comments
 (0)