From cbd02c827328d25974bb124144bfd423fc38ce3e Mon Sep 17 00:00:00 2001 From: BenediktMKuehne Date: Thu, 22 Feb 2024 13:23:49 +0000 Subject: [PATCH] add ignore for emba submodule --- dev-tools/check_project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/check_project.sh b/dev-tools/check_project.sh index 1ef4ffc3..38837b6b 100755 --- a/dev-tools/check_project.sh +++ b/dev-tools/check_project.sh @@ -326,7 +326,7 @@ copy_right_check(){ local DIR_="${2:-}" local EXCLUDE_="${3:-}" echo -e "\\n""${ORANGE}""${BOLD}""EMBArk Copyright check""${NC}""\\n""${BOLD}""=================================================================""${NC}" - mapfile -t COPYRIGHT_LINE_ < <(find "${DIR_}" -type d -path "${EXCLUDE_}" -prune -false -o -type f -path "${0}" -prune -false -o -iname "*.sh" -exec grep -H "Copyright" {} \;) + mapfile -t COPYRIGHT_LINE_ < <(find "${DIR_}" -type d -path "${PWD}/emba" -prune -false -o -type d -path "${EXCLUDE_}" -prune -false -o -type f -path "${0}" -prune -false -o -iname "*.sh" -exec grep -H "Copyright" {} \;) if [[ "${#COPYRIGHT_LINE_[@]}" -gt 0 ]]; then for LINE_ in "${COPYRIGHT_LINE_[@]}"; do if ! grep -q "${YEAR_}.*Siemens Energy AG" "${LINE_%%:*}" && ! grep -q "Siemens AG" "${LINE_%%:*}"; then