From c26a144ee1d285425915bd6151f7d883999cd9e2 Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Wed, 4 Nov 2020 16:45:08 +0000 Subject: [PATCH] Fix substitution. Works with any strings (not as sed) Less portable but tested with Busybox shell used in this image --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 102a423..21ab5e3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -39,7 +39,7 @@ ls -la echo "Adding git commit" ORIGIN_COMMIT="https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA" -COMMIT_MESSAGE=$(echo "$COMMIT_MESSAGE" | sed "s/ORIGIN_COMMIT/$ORIGIN_COMMIT/g") +COMMIT_MESSAGE="${COMMIT_MESSAGE/ORIGIN_COMMIT/$ORIGIN_COMMIT}" git add . git status