From 311b741ab98eb7e0008b4be3c87f5c5a4d8b417c Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 23 Jan 2022 00:14:17 +0100 Subject: [PATCH] Update check_nextcloud --- check_nextcloud | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_nextcloud b/check_nextcloud index 4b5c27e..33b80f8 100644 --- a/check_nextcloud +++ b/check_nextcloud @@ -41,7 +41,7 @@ def check_nextcloud(name:str, conf:dict): def update_check(conf:dict): result = occ("update:check", conf['nc_www_user'],conf['nc_path'], conf['nc_php_version']) - if len(result.split('\n')) > 1: + if len(result.split('\n')) > 2: updates = "Updates:\n" + "\n".join(map(lambda x: "{0}:{1}".format(*x),re.findall("(\w+)(?:\sto version)?\s([\d+.]+) is available",result))) count = result.split('\n')[-2].split(' ')[0] else: