diff --git a/check-style.sh b/check-style.sh index 99df3bb..2d3626d 100755 --- a/check-style.sh +++ b/check-style.sh @@ -41,6 +41,8 @@ case $1 in exit 2 esac +# Filter out symlinks from `affected_files`. We'll check the real files. +affected_files=$(echo "$affected_files" | xargs -r -n1 file | grep -v 'symbolic link' | cut -d: -f1 | tr '\n' ' ') # Unset variable would be a sign of programmer error. We are not using '-e' in # this script as we'd like to handle these cases ourselves where relevant, i.e.,