Cleanup version output

Update Release Notes
This commit is contained in:
ChuckPa 2023-11-10 15:40:26 -05:00
parent c5a4a88f82
commit 4dcb686ab1
No known key found for this signature in database
GPG Key ID: 3CE28A0F6BC31B5B
2 changed files with 4 additions and 4 deletions

View File

@ -2,12 +2,12 @@
#########################################################################
# Plex Media Server database check and repair utility script. #
# Maintainer: ChuckPa #
# Version: v1.01.01 #
# Version: v1.01.02 #
# Date: 10-Nov-2023 #
#########################################################################
# Version for display purposes
Version="v1.01.01"
Version="v1.01.02"
# Flag when temp files are to be retained
Retain=0
@ -1446,7 +1446,7 @@ DoUpdateTimestamp() {
GetLatestRelease() {
Response=$(curl -s "https://api.github.com/repos/ChuckPa/PlexDBRepair/tags")
if [ $? -eq 0 ]; then
LatestVersion="$(echo "$Response" | grep -oP '"name":\s*"\K[^"]*' | sed -n '1p' | tr -d '[v\.]')"
LatestVersion="$(echo "$Response" | grep -oP '"name":\s*"\K[^"]*' | sed -n '1p')"
else
LatestVersion="$Version"
fi

View File

@ -8,7 +8,7 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
# Release Info:
v1.01.01
v1.01.02
- Correct updating when scripted versus interactive.