From ed2b6e911569708ed121c14b87d513860a7e36a7 Mon Sep 17 00:00:00 2001 From: Ilir Bekteshi Date: Thu, 19 Aug 2021 18:14:17 +0200 Subject: [PATCH] Fix script not catching exit code (#29) --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index a9205ad..153ef1b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,4 +27,8 @@ shopt -s globstar yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.} +exitcode=$? + shopt -u globstar + +exit $exitcode