mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-25 09:10:41 +08:00
oops, wrong if
This commit is contained in:
parent
7c67531f48
commit
008d4817f8
1 changed files with 27 additions and 27 deletions
|
@ -215,11 +215,11 @@ def main() -> None:
|
||||||
exit(1)
|
exit(1)
|
||||||
if prev_err := has_previous_error():
|
if prev_err := has_previous_error():
|
||||||
logger.error(f'Cannot continue, a previous error {prev_err} is still present. Please resolve this issue and run fail-reset.')
|
logger.error(f'Cannot continue, a previous error {prev_err} is still present. Please resolve this issue and run fail-reset.')
|
||||||
|
exit(2)
|
||||||
if SYSTEMD:
|
if SYSTEMD:
|
||||||
if _s := is_system_failed():
|
if _s := is_system_failed():
|
||||||
logger.error(f'systemd is in {_s} state, refused')
|
logger.error(f'systemd is in {_s} state, refused')
|
||||||
exit(11)
|
exit(11)
|
||||||
else:
|
|
||||||
try:
|
try:
|
||||||
report = do_system_upgrade(args.debug)
|
report = do_system_upgrade(args.debug)
|
||||||
except NonFatal:
|
except NonFatal:
|
||||||
|
|
Loading…
Reference in a new issue