Merge pull request #110 from ChuckPa/chuckpa/cleanup-version

Cleanup version output
This commit is contained in:
Chuck 2023-11-10 12:47:09 -08:00 committed by GitHub
commit 66ad17da60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.