Skip to content

Commit

Permalink
Re-added v stripping from version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
michealespinola authored Aug 31, 2024
1 parent 9390291 commit 6acb335
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syno.plexupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 6acb335

Please sign in to comment.