From 8d20844a4575d57f4aa8e0fbcaae5c6c79f7337a Mon Sep 17 00:00:00 2001 From: hunterckx <118154470+hunterckx@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:54:50 -0800 Subject: [PATCH] fix: append newline before other content in `set-version.sh` (#82) --- 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"