3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Report any symbolic links
9 EXCLUDED_DIRS
='^3rdparty\|^site-local'
11 # If the code is in a git repo, only print files that are checked in
12 if [ -n "$(command -v git)" ] && \
13 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
15 git ls-tree
-r HEAD | \
18 grep -v "$EXCLUDED_DIRS"
20 # If the code isn't in a git repo, print everything
23 grep -v "$EXCLUDED_DIRS"