Skip to content

Commit 65db9c4

Browse files
authored
release.sh: compare file versions against new version (#610)
1 parent 30f8f3e commit 65db9c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ VER_FILE="version/version.go"
2929
TOML_TMPL_FILE="pkg/generator/templates.go"
3030
CURR_VER_VER_FILE="$(sed -nr 's/Version = "(.+)"/\1/p' "$VER_FILE" | tr -d '\s\t\n')"
3131
CURR_VER_TMPL_FILE="$(sed -nr 's/.*".*v(.+)".*#osdk_version_annotation/v\1/p' "$TOML_TMPL_FILE" | tr -d '\s\t\n')"
32-
if [ "$CURR_VER" != "$CURR_VER_VER_FILE" ] \
33-
|| [ "$CURR_VER" != "$CURR_VER_TMPL_FILE" ]; then
32+
if [ "$VER" != "$CURR_VER_VER_FILE" ] \
33+
|| [ "$VER" != "$CURR_VER_TMPL_FILE" ]; then
3434
echo "versions are not set correctly in $VER_FILE or $TOML_TMPL_FILE"
3535
exit 1
3636
fi

0 commit comments

Comments
 (0)