From b06fe8a0b7ffaab52adc83bca9c6193c8a237619 Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Fri, 19 May 2023 07:36:39 +0200 Subject: [PATCH] kas-container: remove special handling of help sub command This patch removes the special handling of the -h / --help flag for kas subcommands. By that, the build system detection logic properly works and runs the help command in the kas-isar container for ISAR kas files. While this logically does not make any difference, it avoids to pull the kas OE container for ISAR builds, just to show the help message. Signed-off-by: Felix Moessbauer Signed-off-by: Jan Kiszka --- kas-container | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kas-container b/kas-container index 69b6f9b..99b6d7d 100755 --- a/kas-container +++ b/kas-container @@ -320,13 +320,6 @@ KAS_EXTRA_BITBAKE_ARGS=0 # parse kas sub-command options while [ $# -gt 0 ] && [ $KAS_EXTRA_BITBAKE_ARGS -eq 0 ]; do case "$1" in - -h|--help) - set_container_image_var - # SC2086: Double quote to prevent globbing and word splitting. - # shellcheck disable=2086 - trace ${KAS_CONTAINER_COMMAND} run ${KAS_CONTAINER_IMAGE} ${KAS_CMD} --help - exit 0 - ;; --skip|--target|--task) KAS_OPTIONS="${KAS_OPTIONS} $1 $2" shift 2