From 0d89ce2da09bc72f5877b51aa8a63ae2be29b57c Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:11:34 +0300 Subject: [PATCH] up --- entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4bfe09a..86fda77 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,9 +3,10 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" err=0 -INPUT_INPUT_FILES="$(pwd)/Dockerfile $(pwd)/entrypoint.sh" -echo $INPUT_INPUT_FILES for file in $INPUT_INPUT_FILES; do echo /app/addlicense -check "$1" $file | sh + if [ $? -ne 0]; then + err=$? + fi done exit $err