diff --git a/entrypoint.sh b/entrypoint.sh index b4ca591..75e6f50 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,13 +10,9 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -echo 1 -err=0 -echo 2 -if [ -n $INPUT_INPUT_FILES ]; then - echo 3 +if [ -e $INPUT_INPUT_FILES ]; then + export err=0 for file in $INPUT_INPUT_FILES; do - echo 4 echo /app/addlicense -check "$1" $file | sh if [ $? -ne 0]; then err=$?