diff --git a/entrypoint.sh b/entrypoint.sh index 87aae37..2f7266a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,7 +15,7 @@ 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