From: Andrei Pavel Date: Wed, 28 May 2025 11:59:34 +0000 (+0300) Subject: [#3857] Change amend-gitattributes.sh to not look at the root .gitattributes file X-Git-Tag: Kea-3.0.0~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55d66bed021acadeefe208015bb1064a6e94361d;p=thirdparty%2Fkea.git [#3857] Change amend-gitattributes.sh to not look at the root .gitattributes file --- diff --git a/tools/amend-gitattributes.sh b/tools/amend-gitattributes.sh index d9552aa5dc..b6cc047b47 100755 --- a/tools/amend-gitattributes.sh +++ b/tools/amend-gitattributes.sh @@ -14,7 +14,7 @@ root_path=$(cd "$(dirname "${0}")/.." && pwd) cd "${root_path}" # Write to .gitattributes. -find . -type f -name '.gitattributes' -exec rm -f {} \; +find . -mindepth 2 -type f -name '.gitattributes' -exec rm -f {} \; for i in $(./tools/print-generated-files.sh); do # We need to be lenient because we call this script in premium too. Files might not exist. if test ! -f "${i}"; then