From 3cb568cb0fde78c59b4526fc5f8b8e5f8fa4227e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:11:29 +0300 Subject: [PATCH] up --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b334304..904aa0f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,11 +10,11 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -if [ -n "$INPUT_INPUT_FILES" ]; then - export err=0 +if [[ -n "$INPUT_INPUT_FILES" ]]; then + err=0 for file in $INPUT_INPUT_FILES; do echo /app/addlicense -check "$1" "$file" | sh - if [ $? -ne 0]; then + if [[ $? -ne 0]]; then err=$? fi done