This commit is contained in:
aleksandr.vodyanov
2024-05-22 16:39:06 +03:00
parent 2379598af9
commit d39e8a04fa

View File

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