This commit is contained in:
aleksandr.vodyanov
2024-05-22 16:53:55 +03:00
parent 0415c5cdbf
commit 58de8753b3

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Copyright (c) AVROID, Ltd., 2024 # Copyright (c) AVROID, Ltd., 2024
# #
# You can not use the contents of the file in any way without # You can not use the contents of the file in any way without
@@ -10,15 +10,15 @@
echo "Processing event '$GITHUB_EVENT_NAME'" echo "Processing event '$GITHUB_EVENT_NAME'"
echo "List of files with absent license:" echo "List of files with absent license:"
echo "===================================" echo "==================================="
if [ -e $INPUT_INPUT_FILES ]; then if [ -n $INPUT_INPUT_FILES ]; then
export err=0 export err=0
for file in $INPUT_INPUT_FILES; do 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 if [ $? -ne 0]; then
err=$? err=$?
fi fi
done done
exit $err exit $err
else else
echo /app/addlicense -check "$1" . | sh echo /app/addlicense -check "$1" "." | sh
fi fi