Skip to content

Commit

Permalink
Merge pull request #182 from ChuckPa/chuckpa/fix-busybox-posix
Browse files Browse the repository at this point in the history
Change 'Update' to use non-POSIX techniques
  • Loading branch information
ChuckPa authored Jan 4, 2025
2 parents 804c901 + 48f7ff7 commit 738dc8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DBRepair.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#########################################################################
# Plex Media Server database check and repair utility script. #
# Maintainer: ChuckPa #
# Version: v1.10.01 #
# Date: 02-Jan-2025 #
# Version: v1.10.02 #
# Date: 03-Jan-2025 #
#########################################################################

# Version for display purposes
Version="v1.10.01"
Version="v1.10.02"

# Have the databases passed integrity checks
CheckedDB=0
Expand Down Expand Up @@ -1633,7 +1633,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')"
LatestVersion="$(echo "$Response" | awk -F : '{print $2}' | awk -F \, '{print $1}' | tr -d \")"
else
LatestVersion="$Version"
fi
Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)

# Release Info:
v1.10.02

1. Refactor UPDATE - QNAP BusyBox no longer support POSIX grep. Refactored.

v1.10.01

1. Minor cleanup - Cleanup purge/prune handling after merging commands into one.
Expand Down

0 comments on commit 738dc8d

Please sign in to comment.