From 4d80b8230d8ba397df520c4419a2bf55c8803b4c Mon Sep 17 00:00:00 2001 From: Hunter Craft <118154470+hunterckx@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:08:19 -0800 Subject: [PATCH] fix: append newline before other content in `set-version.sh` (#184) (#186) --- scripts/set-version.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/set-version.sh b/scripts/set-version.sh index ec56a7b..31272ce 100755 --- a/scripts/set-version.sh +++ b/scripts/set-version.sh @@ -15,6 +15,9 @@ BUILD_DATE=$(TZ="America/Los_Angeles" date +"%Y-%m-%d %H:%M:%S %Z") # Get the current code version from git VERSION=$(git tag --points-at HEAD) +# Append newline to ensure following lines are separated from existing content +echo "" >> "$TARGET_ENV_FILE" + # Append these values as NEXT_PUBLIC variables echo "NEXT_PUBLIC_GIT_HASH='$GIT_HASH'" >> "$TARGET_ENV_FILE" echo "NEXT_PUBLIC_BUILD_DATE='$BUILD_DATE'" >> "$TARGET_ENV_FILE"