This commit is contained in:
aleksandr.vodyanov
2024-05-22 17:17:11 +03:00
parent 725945bcef
commit d78ba28ab1

View File

@@ -10,11 +10,12 @@
echo "Processing event '$GITHUB_EVENT_NAME'"
echo "List of files with absent license:"
echo "==================================="
if [[ -n "$INPUT_INPUT_FILES" ]]; then
err=0
IFS=' '
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