Skip to content

Commit

Permalink
chore: Minor syntax correction, add missing return code check
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Feb 23, 2024
1 parent 8307b17 commit 9729de3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ublue_update/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,19 @@ def run_updates(system, system_update_available):
[
"/usr/bin/topgrade",
"--config",
"/usr/share/ublue-update/topgrade-system.toml"
"/usr/share/ublue-update/topgrade-system.toml",
],
capture_output=True,
)
log.debug(out.stdout.decode("utf-8"))

if out.returncode != 0:
print(
f"topgrade returned code {out.returncode}, program output:"
)
print(out.stdout.decode("utf-8"))
os._exit(out.returncode)

"""Users"""
for user in users:
try:
Expand Down

0 comments on commit 9729de3

Please sign in to comment.