From d8d8bac1d914f605afdd5c09c1c555310edbb0d9 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 30 Jan 2022 22:59:51 +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 9ac0737..b765866 100644 --- a/check-nextcloud +++ b/check-nextcloud @@ -42,7 +42,7 @@ 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')) > 2: - updates = "Updates:\n" + "\n".join(map(lambda x: "{0}:{1}".format(*x),re.findall("(\w+)(?:\sto version)?\s([\d+.]+) is available",result))) + updates = "Updates: " + " ".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: updates = result