From f18bfb6cdea542886e54c049dd4e19831d7dbaf4 Mon Sep 17 00:00:00 2001 From: "George M. Dias" Date: Tue, 31 Dec 2024 16:50:17 -0600 Subject: [PATCH] Update release-prep.sh --- release-prep.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/release-prep.sh b/release-prep.sh index 36cade489..2cf1cffb2 100755 --- a/release-prep.sh +++ b/release-prep.sh @@ -67,6 +67,10 @@ echo # Pull the main branch content from github PrintColor "Yellow" "Pull the main branch from github..." git pull origin main +if [ $? -ne 0 ]; then + PrintColor "Red" " Failed to Pull the main branch from github" + TerminateScript +fi PrintColor "Green" "Done" echo @@ -102,9 +106,10 @@ while true; do done PrintColor "Green" "Setting SAF CLI version to: $next_version" -# 4. Write the updated JSON back to the file +# 4. Update the package.json and VERSION files updated_json=$(echo "$json_content" | jq --arg version "$next_version" '.version = $version') echo "$updated_json" > package.json +echo "$next_version" > VERSION PrintColor "Green" "Done" echo