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