From e3e0e5fa70738f574a7ead29f3ccd83c280a06f1 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 12:33:17 +0300 Subject: [PATCH] fixed entrypoint.sh --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index da2b1f0..d9b82ae 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,6 +11,8 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" +err=0 for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" $file | sh + {echo /app/addlicense -check "$1" $file || err=1} | sh done +exit $err