mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-06 03:08:55 -05:00
Correct confirmation when not scripted.
Fixes: https://github.com/ChuckPa/PlexDBRepair/issues/108
This commit is contained in:
parent
ee335a69a5
commit
f6008d76b7
15
DBRepair.sh
15
DBRepair.sh
@ -2,12 +2,12 @@
|
|||||||
#########################################################################
|
#########################################################################
|
||||||
# Plex Media Server database check and repair utility script. #
|
# Plex Media Server database check and repair utility script. #
|
||||||
# Maintainer: ChuckPa #
|
# Maintainer: ChuckPa #
|
||||||
# Version: v1.01.00 #
|
# Version: v1.01.01 #
|
||||||
# Date: 16-Oct-2023 #
|
# Date: 10-Nov-2023 #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# Version for display purposes
|
# Version for display purposes
|
||||||
Version="v1.01.00"
|
Version="v1.01.01"
|
||||||
|
|
||||||
# Flag when temp files are to be retained
|
# Flag when temp files are to be retained
|
||||||
Retain=0
|
Retain=0
|
||||||
@ -1930,8 +1930,11 @@ do
|
|||||||
Output "Checking for update"
|
Output "Checking for update"
|
||||||
GetLatestRelease
|
GetLatestRelease
|
||||||
if [ $(VersionDigits $LatestVersion) -gt $(VersionDigits $Version) ]; then
|
if [ $(VersionDigits $LatestVersion) -gt $(VersionDigits $Version) ]; then
|
||||||
[ $Scripted -eq 1 ] && DoUpdate=1
|
if [ $Scripted -eq 1 ]; then
|
||||||
ConfirmYesNo "Download $Latest and update?" && DoUpdate=1
|
DoUpdate=1
|
||||||
|
elif ConfirmYesNo "Download $LatestVersion and update?"; then
|
||||||
|
DoUpdate=1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
Output "No update available."
|
Output "No update available."
|
||||||
fi
|
fi
|
||||||
@ -1947,6 +1950,8 @@ do
|
|||||||
Output "Restart to launch updated DBRepair.sh ($LatestVersion)"
|
Output "Restart to launch updated DBRepair.sh ($LatestVersion)"
|
||||||
WriteLog "Update - Updated to version $LatestVersion."
|
WriteLog "Update - Updated to version $LatestVersion."
|
||||||
exit 0
|
exit 0
|
||||||
|
else
|
||||||
|
Output "Unable to download and update. Error $Result."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
Output "Script path '${ScriptName}' is not writable."
|
Output "Script path '${ScriptName}' is not writable."
|
||||||
|
|||||||
@ -8,6 +8,10 @@
|
|||||||

|

|
||||||
|
|
||||||
# Release Info:
|
# Release Info:
|
||||||
|
v1.01.01
|
||||||
|
|
||||||
|
- Correct updating when scripted versus interactive.
|
||||||
|
|
||||||
v1.01.00
|
v1.01.00
|
||||||
|
|
||||||
- Adds ability to self download and install latest version of DBRepair.sh
|
- Adds ability to self download and install latest version of DBRepair.sh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user