From 0d840850aea0ef21a0ec89c888eec2f33c2fbba1 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 2 Dec 2019 15:48:42 -0600 Subject: [PATCH] kernel: Fix that the help is not printed twice While running the build-kernel.sh script with no arguments, the help is printed twice. This PR will fix that. Fixes #433 Signed-off-by: Gabriela Cervantes --- kernel/build-kernel.sh | 5 +++-- kernel/kata_config_version | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/build-kernel.sh b/kernel/build-kernel.sh index df1cc41171..dc5a955cf8 100755 --- a/kernel/build-kernel.sh +++ b/kernel/build-kernel.sh @@ -58,6 +58,7 @@ PREFIX="${PREFIX:-/usr}" source "${script_dir}/../scripts/lib.sh" usage() { + exit_code="$1" cat <