Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit a6e3c54

Browse files
authored
Fix release image script (#323)
1 parent 6473858 commit a6e3c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release-image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function main() {
2121
local -r commit="$2"
2222
local -r image="gcr.io/flink-operator/flink-operator:$version"
2323

24-
local -r existing_commit="$(git rev-parse ${version} || true)"
25-
if [[ -n "${existing_commit}" && "${existing_commit}" != "${commit}" ]]; then
24+
local existing_commit="$(git rev-parse ${version} 2>/dev/null || true)"
25+
if [[ -n "${existing_commit}" && "${existing_commit}" != "${commit}" && "${existing_commit}" != "${version}" ]]; then
2626
echo "The version tag ${version} already exists for commit ${existing_commit}"
2727
exit 2
2828
fi

0 commit comments

Comments
 (0)