From da12aa2d6331f6923c6f1aa6e45efe3f3b95c58a Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 22 Aug 2016 20:09:31 +0100 Subject: [PATCH] improve logic on test for no update --- root/etc/cont-init.d/50-plex-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/50-plex-update b/root/etc/cont-init.d/50-plex-update index a988440..fc6acbe 100644 --- a/root/etc/cont-init.d/50-plex-update +++ b/root/etc/cont-init.d/50-plex-update @@ -15,7 +15,7 @@ cat > "${NOVERSION_SET}" <<-EOFVERSION EOFVERSION # test for no version set or opt out for autoupdates -if [[ -z "$VERSION" ]] || [[ "$VERSION"=="0" ]] || [ "$ADVANCED_DISABLEUPDATES" ]; then +if [ -z "$VERSION" -o "$VERSION" == "0" -o ! -z "$ADVANCED_DISABLEUPDATES" ]; then echo "$(cat /tmp/no-version.nfo)" exit 0 fi