Skip to content

Commit 8c5d780

Browse files
author
ninpucho
committed
Update 30_update_plex.sh
Added check in case json version comes back blank echoes error and skips update to prevent wget loop.
1 parent cf11595 commit 8c5d780

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

init/30_update_plex.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ else
2323
fi
2424

2525
last=130
26-
if [[ "$VERSION" != "$INSTALLED" ]]; then
26+
if [[ "$VERSION" == "" ]]; then
27+
echo "ERROR: No version found, running installed version $INSTALLED"
28+
elif [[ "$VERSION" != "$INSTALLED" ]]; then
2729
echo "Upgrading from version: $INSTALLED to version: $VERSION"
2830
while [[ $last -ne "0" ]]; do
2931
rm -f /tmp/plexmediaserver_*.deb

0 commit comments

Comments
 (0)