fix: non-0 exit status of is-active
continuous-integration/drone/push Build is failing Details

pull/98/head
Inex Code 2024-02-12 18:58:27 +03:00
parent 1a34558e23
commit 25c691104f
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ def rebuild_system_task(job: Job, upgrade: bool = False):
try: try:
status = subprocess.run( status = subprocess.run(
["systemctl", "is-active", unit_name], ["systemctl", "is-active", unit_name],
check=True, check=False,
capture_output=True, capture_output=True,
text=True, text=True,
) )
@ -96,7 +96,7 @@ def rebuild_system_task(job: Job, upgrade: bool = False):
"-o", "-o",
"cat", "cat",
], ],
check=True, check=False,
capture_output=True, capture_output=True,
text=True, text=True,
).stdout.strip() ).stdout.strip()