Merge pull request #222 from ChuckPa/chuckpa/unitialized

Correct missing variable initialization
This commit is contained in:
Chuck 2025-06-22 16:06:59 -04:00 committed by GitHub
commit 44f722166d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 5 deletions

View File

@ -2,12 +2,12 @@
######################################################################### #########################################################################
# Database Repair Utility for Plex Media Server. # # Database Repair Utility for Plex Media Server. #
# Maintainer: ChuckPa # # Maintainer: ChuckPa #
# Version: v1.11.05 # # Version: v1.11.06 #
# Date: 05-Jun-2025 # # Date: 22-Jun-2025 #
######################################################################### #########################################################################
# Version for display purposes # Version for display purposes
Version="v1.11.05" Version="v1.11.06"
# Have the databases passed integrity checks # Have the databases passed integrity checks
CheckedDB=0 CheckedDB=0
@ -65,6 +65,9 @@ DFFLAGS="-m"
# If LC_ALL is null, default to C # If LC_ALL is null, default to C
[ "$LC_ALL" = "" ] && export LC_ALL=C [ "$LC_ALL" = "" ] && export LC_ALL=C
# Check Restart
[ "$DBRepairRestartedAfterUpdate" = "" ] && DBRepairRestartedAfterUpdate=0
# Universal output function # Universal output function
Output() { Output() {
if [ $Scripted -gt 0 ]; then if [ $Scripted -gt 0 ]; then
@ -2314,7 +2317,7 @@ do
88|upda*) 88|upda*)
# Don't update again after restarting after updating # Don't update again after restarting after updating
if [ "$DBRepairRestartedAfterUpdate" = "1" ]; then if [ $DBRepairRestartedAfterUpdate -eq 1 ]; then
Output "Already updated. Continuing." Output "Already updated. Continuing."
WriteLog "Update - Ignore Update request after updating." WriteLog "Update - Ignore Update request after updating."
continue continue
@ -2344,7 +2347,7 @@ do
if [ $Scripted -eq 0 ] && ConfirmYesNo "Restart and use $LatestVersion ?" ; then if [ $Scripted -eq 0 ] && ConfirmYesNo "Restart and use $LatestVersion ?" ; then
WriteLog "Restarting after upgrade" WriteLog "Restarting after upgrade"
Output "Restarting" Output "Restarting"
export DBRepairRestartedAfterUpdate="1" export DBRepairRestartedAfterUpdate=1
exec "$0" "$@" exec "$0" "$@"
else else
Output "Restart to launch updated DBRepair.sh ($LatestVersion)" Output "Restart to launch updated DBRepair.sh ($LatestVersion)"

View File

@ -8,6 +8,10 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg) ![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
# Release Info: # Release Info:
v1.11.06
1. Restart after update - Correct missing variable initialization.
v1.11.05 v1.11.05
1. Remove menu option - Deflate menu option wasn't previously removed. Now removed. 1. Remove menu option - Deflate menu option wasn't previously removed. Now removed.