From d39e8a04faf59a2156ebf125bfc3ba5b4f6a8824 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:39:06 +0300 Subject: [PATCH] up --- entrypoint.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d2c5cde..12ccc85 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,14 +11,14 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" err=0 -if [ -e $INPUT_INPUT_FILES ]; then - for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" $file | sh - if [ $? -ne 0]; then - err=$? - fi - done - exit $err +if [ -n $INPUT_INPUT_FILES ]; then + for file in $INPUT_INPUT_FILES; do + echo /app/addlicense -check "$1" $file | sh + if [ $? -ne 0]; then + err=$? + fi + done + exit $err else - echo /app/addlicense -check "$1" . | sh + echo /app/addlicense -check "$1" . | sh fi