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