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