Update 30_update_plex.sh

Added check in case json version comes back blank echoes error and skips update to prevent wget loop.
pull/24/head
ninpucho 9 years ago
parent cf11595e73
commit 8c5d780861

@ -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…
Cancel
Save