diff --git a/build.sh b/build.sh index d14e88141..ae2561330 100755 --- a/build.sh +++ b/build.sh @@ -74,8 +74,12 @@ echo "Metadata file: $METADATA_FILE" GIT_COMMIT=$(git rev-parse HEAD 2> /dev/null || echo "unknown") echo "Git commit: $GIT_COMMIT" -echo "$CHANGELOG_MD" > resources/changelog.md -echo "$VERSION_TXT" > resources/version.txt +if [ -n "$CHANGELOG_MD" ]; then + echo "$CHANGELOG_MD" > resources/changelog.md +fi +if [ -n "$VERSION_TXT" ]; then + echo "$VERSION_TXT" > resources/version.txt +fi docker buildx build \ --platform linux/amd64 \