From 58de8753b3eb50b602d51ffee479d8b4ebe8e96c Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:53:55 +0300 Subject: [PATCH] up --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 75e6f50..302ef9f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without @@ -10,15 +10,15 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -if [ -e $INPUT_INPUT_FILES ]; then +if [ -n $INPUT_INPUT_FILES ]; then export err=0 for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" $file | sh + 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