From b00ad9823a474b1b3ff3436dd7116b8229fb6215 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 7 Oct 2025 10:15:04 +0200 Subject: kbuild: Don't check on the profile before help MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the user asked for '-h/--help', the profile is irrelevant. Hence, the right order is: first check if '-h/--help' was provided, then the profile. Signed-off-by: Miquel Sabaté Solà --- bin/kbuild | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/bin/kbuild b/bin/kbuild index 8064ac9..23cef35 100755 --- a/bin/kbuild +++ b/bin/kbuild @@ -85,20 +85,6 @@ while [[ $# -gt 0 ]]; do esac done -# Hard check on the profile being picked. -case "$PROFILE" in - "vf2" | "suse") - ;; - "") - echo "kbuild (error): you have to profile one of these profiles: vf2, suse." - exit 1 - ;; - *) - echo "kbuild (error): uknown profile '$PROFILE'. Possible values: vf2, suse." - exit 1 - ;; -esac - # Print the show message if needed. if [ -n "$SHOW_HELP" ]; then cat <