From f3e4386480d50bb6fcac718812592d82f172c610 Mon Sep 17 00:00:00 2001 From: Michael Erdely Date: Sat, 25 Jan 2025 15:30:25 -0500 Subject: [PATCH] Add Version to update.sh for Darwin Changes: * Add version to update.sh for Darwin --- VERSION | 4 ++-- app.manifest | 2 +- bin/update.sh | 6 +++++- default/app.conf | 4 ++-- docs/ReleaseNotes.md | 8 ++++++++ 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 5fc1b17..c5a3754 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -9.2.0.11 -9.2.0.11 +9.2.0.12 +9.2.0.12 diff --git a/app.manifest b/app.manifest index e0f7eef..03e205f 100644 --- a/app.manifest +++ b/app.manifest @@ -29,7 +29,7 @@ "id": { "group": null, "name": "TA-nix", - "version": "9.2.0.11" + "version": "9.2.0.12" }, "license": { "name": "Splunk Software License Agreement", diff --git a/bin/update.sh b/bin/update.sh index 6119e66..075057d 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -120,12 +120,16 @@ elif [ "$KERNEL" = "Darwin" ] ; then gsub(/^.*Title: /, "", line); gsub(/, Version:.*$/, "", line); PACKAGE="package=\"" line "\"" + version = $0; + gsub(/^.*Title: [^,]+, Version: /, "", version); + gsub(/, Size:.*$/, "", version); + VERSION="latest_package_version=\"" version "\"" RECOMMENDED="" RESTART="" TOTAL=TOTAL+1 if ( $0 ~ /Recommended: YES/ ) { RECOMMENDED="is_recommended=\"true\"" } if ( $0 ~ /Action: restart/ ) { RESTART="restart_required=\"true\"" } - printf "%s %s %s %s\n", DATE, PACKAGE, RECOMMENDED, RESTART + printf "%s %s %s %s\n", DATE, PACKAGE, VERSION, RECOMMENDED, RESTART } }' diff --git a/default/app.conf b/default/app.conf index 793a7b1..4c4b6cf 100644 --- a/default/app.conf +++ b/default/app.conf @@ -17,7 +17,7 @@ docs_section_override = AddOns:released [launcher] author = Michael Erdely -version = 9.2.0.11 +version = 9.2.0.12 description = Technical Add-on for Unix and Linux #[package] @@ -26,5 +26,5 @@ description = Technical Add-on for Unix and Linux [id] name = TA-unix -version = 9.2.0.11 +version = 9.2.0.12 diff --git a/docs/ReleaseNotes.md b/docs/ReleaseNotes.md index b7def40..0775ac2 100644 --- a/docs/ReleaseNotes.md +++ b/docs/ReleaseNotes.md @@ -1,5 +1,13 @@ # Technical Add-on for Unix and Linux +## Version 9.2.0.12 (2025-01-25) + +Add Version to update.sh for Darwin + +Changes: + +* Add version to update.sh for Darwin + ## Version 9.2.0.11 (2025-01-25) Fix Darwin Scripts and Document Sudo