From 8c5d780861d605b78d74cb220e8801ff70c9c6b7 Mon Sep 17 00:00:00 2001 From: ninpucho Date: Fri, 4 Mar 2016 00:35:25 -0500 Subject: [PATCH] Update 30_update_plex.sh Added check in case json version comes back blank echoes error and skips update to prevent wget loop. --- init/30_update_plex.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init/30_update_plex.sh b/init/30_update_plex.sh index 22cec41..fa8594d 100644 --- a/init/30_update_plex.sh +++ b/init/30_update_plex.sh @@ -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