mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-15 15:48:56 -05:00
Add Numeric sorting to tag retrieval
Ensures highest version number is first listed
This commit is contained in:
parent
85c88a59f3
commit
43d636b371
@ -2,12 +2,12 @@
|
|||||||
#########################################################################
|
#########################################################################
|
||||||
# Database Repair Utility for Plex Media Server. #
|
# Database Repair Utility for Plex Media Server. #
|
||||||
# Maintainer: ChuckPa #
|
# Maintainer: ChuckPa #
|
||||||
# Version: v1.13.00 #
|
# Version: v1.13.01 #
|
||||||
# Date: 09-Nov-2025 #
|
# Date: 14-Nov-2025 #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# Version for display purposes
|
# Version for display purposes
|
||||||
Version="v1.13.00"
|
Version="v1.13.01"
|
||||||
|
|
||||||
# Have the databases passed integrity checks
|
# Have the databases passed integrity checks
|
||||||
CheckedDB=0
|
CheckedDB=0
|
||||||
@ -1891,7 +1891,7 @@ DoUpdateTimestamp() {
|
|||||||
GetLatestRelease() {
|
GetLatestRelease() {
|
||||||
Response=$(curl -sL "https://api.github.com/repos/ChuckPa/DBRepair/tags")
|
Response=$(curl -sL "https://api.github.com/repos/ChuckPa/DBRepair/tags")
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
LatestVersion="$(echo "$Response" | grep name | awk -F: '{print $2}' | sort -r | head -1 | tr -d \" | tr -d ' ' | tr -d ',')"
|
LatestVersion="$(echo "$Response" | grep name | awk -F: '{print $2}' | sort -rn | head -1 | tr -d \" | tr -d ' ' | tr -d ',')"
|
||||||
else
|
else
|
||||||
LatestVersion="$Version"
|
LatestVersion="$Version"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -8,6 +8,11 @@
|
|||||||

|

|
||||||
|
|
||||||
# Release Info:
|
# Release Info:
|
||||||
|
v1.13.01
|
||||||
|
|
||||||
|
1. Tag sort order - Github tags are not guaranteed to be numeric or in most-recent order.
|
||||||
|
This update sorts version tags numerically and in reverse order to accommodate github shortcoming.
|
||||||
|
|
||||||
v1.13.00
|
v1.13.00
|
||||||
|
|
||||||
1. Binhex containers - Add support for updated 'supervisord' start/stop control.
|
1. Binhex containers - Add support for updated 'supervisord' start/stop control.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user