From aa9c6dec8538f15864da724f26c6133df30d2508 Mon Sep 17 00:00:00 2001 From: Mateo de Mayo Date: Sun, 5 Jul 2020 11:28:47 -0300 Subject: [PATCH] Do not exit with error on -so --- matter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matter.py b/matter.py index d0f9a65..b97b970 100755 --- a/matter.py +++ b/matter.py @@ -532,13 +532,15 @@ def do_patch_grub_cfg_icons(): entries = get_entry_names(grub_cfg) if len(icons) != len(entries): error( - f"You must specify {len(entries)}" + f"You must specify {len(entries)} " f"icons ({len(icons)} provided) for entries:", should_exit=False, ) for i, m in enumerate(entries): print(f"{i + 1}. {m['entryname']}") - exit(1) + # NOTE: We exit with 0 here to not stop the apt upgrade process + # eventually it will be solved with an autoremove + exit(0) # Build new grub cfg with given icons new_grub_cfg = ""