From 3824af05756d7b6ac8f996df8938936b02e2e9c3 Mon Sep 17 00:00:00 2001 From: Gaelle Fournier Date: Fri, 14 Jun 2024 14:15:35 +0200 Subject: [PATCH] fix(ci): Fix check licence exit value --- script/check_licenses.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/check_licenses.sh b/script/check_licenses.sh index c66e63da8c..e9c31f04a2 100755 --- a/script/check_licenses.sh +++ b/script/check_licenses.sh @@ -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 @@ -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