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:
ninpucho 2016-03-04 00:35:25 -05:00
parent cf11595e73
commit 8c5d780861

View file

@ -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