Update 30_update_plex.sh
Added check in case json version comes back blank echoes error and skips update to prevent wget loop.
This commit is contained in:
parent
cf11595e73
commit
8c5d780861
1 changed files with 3 additions and 1 deletions
|
|
@ -23,7 +23,9 @@ else
|
|||
fi
|
||||
|
||||
last=130
|
||||
if [[ "$VERSION" != "$INSTALLED" ]]; then
|
||||
if [[ "$VERSION" == "" ]]; then
|
||||
echo "ERROR: No version found, running installed version $INSTALLED"
|
||||
elif [[ "$VERSION" != "$INSTALLED" ]]; then
|
||||
echo "Upgrading from version: $INSTALLED to version: $VERSION"
|
||||
while [[ $last -ne "0" ]]; do
|
||||
rm -f /tmp/plexmediaserver_*.deb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue