Skip to content

Commit cddc819

Browse files
committed
hack: fix release.sh regex
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
1 parent 51d6c00 commit cddc819

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ for DIR in providers examples; do
5252
for GOMOD in $(find "${DIR}" -name go.mod); do
5353
B=$(dirname ${GOMOD})
5454
if [ "$(uname)" = "Darwin" ]; then
55-
stepi sed -i '' -E '/github\.com\/multicluster-runtime\/multicluster-runtime/ s/([[:space:]]+)v[[:alnum:].-_+]+$/\1'"${VERSION}"'/' "${B}/go.mod"
55+
stepi sed -i '' -E '/github\.com\/multicluster-runtime\/multicluster-runtime/ s/([[:space:]]+)v[[:alnum:]._+\-]+$/\1'"${VERSION}"'/' "${B}/go.mod"
5656
else
57-
stepi sed -i -E '/github\.com\/multicluster-runtime\/multicluster-runtime/ s/([[:space:]]+)v[[:alnum:].-_+]+$/\1'"${VERSION}"'/' "${B}/go.mod"
57+
stepi sed -i -E '/github\.com\/multicluster-runtime\/multicluster-runtime/ s/([[:space:]]+)v[[:alnum:]._+\-]+$/\1'"${VERSION}"'/' "${B}/go.mod"
5858
fi
5959
step git diff "${B}/go.mod"
6060
echo
6161
pushd ${B}
6262
stepi go mod tidy
6363
popd
6464
stepi git add "${B}/go.mod"
65-
stepi git commit -m "Update ${B}/go.mod to depend on ${VERSION}"
65+
stepi git commit --allow-empty -m "Update ${B}/go.mod to depend on ${VERSION}"
6666
stepi git tag -s -m "$V" "${B}/${VERSION}"
6767
stepi git push origin "${B}/${VERSION}"
6868
done

0 commit comments

Comments
 (0)