From 6acb335630a3c89bda2e34a6c6b1920ee4f2e85a Mon Sep 17 00:00:00 2001 From: Micheal Espinola Date: Sat, 31 Aug 2024 00:53:24 -0700 Subject: [PATCH] Re-added v stripping from version tag --- syno.plexupdate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syno.plexupdate.sh b/syno.plexupdate.sh index 964136e..95ec561 100755 --- a/syno.plexupdate.sh +++ b/syno.plexupdate.sh @@ -23,7 +23,7 @@ exec > >(tee "$SrceFllPth.log") 2>"$SrceFllPth.debug" set -x # SCRIPT VERSION -SPUScrpVer=4.6.4 +SPUScrpVer=4.6.5 MinDSMVers=7.0 # PRINT OUR GLORIOUS HEADER BECAUSE WE ARE FULL OF OURSELVES printf "\n" @@ -118,6 +118,7 @@ if [ "$?" -eq "0" ]; then SPUSAPIDoc=$(jq -r '.[].documentation_url' < <(printf '%s' "$GitHubJson")) # SCRAPE EXPECTED RELEASE-RELATED INFO SPUSNewVer=$(jq -r '.[].tag_name' < <(printf '%s' "$GitHubJson")) + SPUSNewVer=${SPUSNewVer#v} SPUSRlDate=$(jq -r '.[].published_at' < <(printf '%s' "$GitHubJson")) SPUSRlDate=$(date --date "$SPUSRlDate" +'%s') SPUSRelAge=$(((TodaysDate-SPUSRlDate)/86400))