From 49fe3decedd1209d4fee1335fb2754f5165e10b2 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 21 Feb 2023 02:58:02 +0100 Subject: [PATCH] refactor(iso): No need to hard-fail when more than one of a partition type exists, we ask for a choice instead (#1) --- setup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 5f9e530..d4cc67b 100644 --- a/setup.sh +++ b/setup.sh @@ -79,8 +79,7 @@ function we_have_exactly_one_part () { return 0 ;; *) - printf -- '%s\n' 'Multiple '"${parttype}"' partitions found. We expect exactly one. Cowardly exiting 1 ...' - exit 1 + return 1 ;; esac printf -- '%s\n' 'Partition list does not look valid. Cowardly exiting 1 ...'