Skip to content

Commit b6e1e8b

Browse files
authored
chore: Fixes unbound variable when there aren't non breaking changes in a release (#642)
1 parent 20ce522 commit b6e1e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/releaser/scripts/setghenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if [ "$SDK_MINOR_VERSION" = "0" ] && [ "$SDK_PATCH_VERSION" = "0" ]; then
3434
fi
3535
else
3636
# For minor versions, include non-breaking changes directly
37-
if [ -n "$NON_BREAKING_CHANGES" ]; then
37+
if [ -n "${NON_BREAKING_CHANGES:-}" ]; then
3838
echo "Adding non-breaking changes to release notes"
3939
RELEASE_NOTES=$(echo -e "${RELEASE_NOTES}\n\n## Changes\n${NON_BREAKING_CHANGES}")
4040
fi

0 commit comments

Comments
 (0)