up
This commit is contained in:
@@ -11,14 +11,14 @@ echo "Processing event '$GITHUB_EVENT_NAME'"
|
||||
echo "List of files with absent license:"
|
||||
echo "==================================="
|
||||
err=0
|
||||
if [ -e $INPUT_INPUT_FILES ]; then
|
||||
for file in $INPUT_INPUT_FILES; do
|
||||
echo /app/addlicense -check "$1" $file | sh
|
||||
if [ $? -ne 0]; then
|
||||
err=$?
|
||||
fi
|
||||
done
|
||||
exit $err
|
||||
if [ -n $INPUT_INPUT_FILES ]; then
|
||||
for file in $INPUT_INPUT_FILES; do
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user