Skip to content

Commit

Permalink
fix(ci): Fix check licence exit value
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Jun 14, 2024
1 parent cdb5afa commit dd3e651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/check_licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ check_licenses() {

set +e
failed=0
find . -type f -name "$files" -print0 | while IFS= read -r -d '' file; do
while IFS= read -r -d '' file; do
check=true
for b in ${denylist[*]}; do
if [[ "$file" == *"$b"* ]]; then
Expand All @@ -44,7 +44,7 @@ check_licenses() {
failed=1
fi
fi
done
done < <(find . -type f -name "$files" -print0)
set -e

if [ $failed -ne 0 ]; then
Expand Down

0 comments on commit dd3e651

Please sign in to comment.