mb/google/parrot: Fix smbus subsystem ID
[coreboot.git] / util / lint / lint-stable-018-symlinks
blob060b470f8c1446518f63fbde733ef7b43da9a41d
1 #!/usr/bin/env sh
3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Report any symbolic links
7 LINTDIR="$(
8 cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
9 pwd -P
12 # shellcheck source=helper_functions.sh
13 . "${LINTDIR}/helper_functions.sh"
15 EXCLUDED_DIRS='^3rdparty\|^site-local'
17 # Exit if the code isn't in a git repo
18 if [ "${IN_GIT_TREE}" -eq 0 ]; then
19 exit 0
23 ${GIT} ls-tree -r HEAD | \
24 grep ^120000 | \
25 cut -f2 | \
26 grep -v "$EXCLUDED_DIRS"