Skip to content

Commit da12aa2

Browse files
committed
improve logic on test for no update
1 parent 6dc05aa commit da12aa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

root/etc/cont-init.d/50-plex-update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cat > "${NOVERSION_SET}" <<-EOFVERSION
1515
EOFVERSION
1616

1717
# test for no version set or opt out for autoupdates
18-
if [[ -z "$VERSION" ]] || [[ "$VERSION"=="0" ]] || [ "$ADVANCED_DISABLEUPDATES" ]; then
18+
if [ -z "$VERSION" -o "$VERSION" == "0" -o ! -z "$ADVANCED_DISABLEUPDATES" ]; then
1919
echo "$(cat /tmp/no-version.nfo)"
2020
exit 0
2121
fi

0 commit comments

Comments
 (0)