From f9eda6fd3f8a7c29aa03bfd295128dc4fe6a7f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Sat, 4 Mar 2023 15:21:44 +0100 Subject: [PATCH 1/2] [fix] lib:shell_command --- source/logic/lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/logic/lib.py b/source/logic/lib.py index 25dd5af..de3d928 100644 --- a/source/logic/lib.py +++ b/source/logic/lib.py @@ -51,7 +51,8 @@ def env_get_language(): def shell_command(command): result = _subprocess.run( command, - capture_output = True + capture_output = True, + shell = True, ) return { "return_code": result.returncode, From c4497d24eec96ce50990088dd0a9d71e2ae37b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Sat, 4 Mar 2023 15:22:45 +0100 Subject: [PATCH 2/2] [mod] examples --- examples/test-1.hmdl.json | 13 ------------- examples/test-2.hmdl.json | 13 ------------- examples/test.hmdl.json | 14 ++++++++++++++ 3 files changed, 14 insertions(+), 26 deletions(-) diff --git a/examples/test-1.hmdl.json b/examples/test-1.hmdl.json index 365b2ce..7d4b159 100644 --- a/examples/test-1.hmdl.json +++ b/examples/test-1.hmdl.json @@ -1,17 +1,4 @@ { - "defaults": { - "schedule": { - "regular_interval": 15, - "attentive_interval": 5 - }, - "notifications": [ - { - "kind": "console", - "parameters": { - } - } - ] - }, "checks": [ { "name": "test", diff --git a/examples/test-2.hmdl.json b/examples/test-2.hmdl.json index 74c5ba3..60fc349 100644 --- a/examples/test-2.hmdl.json +++ b/examples/test-2.hmdl.json @@ -1,17 +1,4 @@ { - "defaults": { - "schedule": { - "regular_interval": 10, - "attentive_interval": 1 - }, - "notifications": [ - { - "kind": "libnotify", - "parameters": { - } - } - ] - }, "checks": [ { "name": "test", diff --git a/examples/test.hmdl.json b/examples/test.hmdl.json index 4c39d28..4682f5f 100644 --- a/examples/test.hmdl.json +++ b/examples/test.hmdl.json @@ -1,4 +1,18 @@ { + "defaults": { + "schedule": { + "regular_interval": 10, + "attentive_interval": 1 + }, + "threshold": 1, + "notifications": [ + { + "kind": "console", + "parameters": { + } + } + ] + }, "includes": [ "test-1.hmdl.json", "test-2.hmdl.json"