1
0
Fork 0

Follow symlinks when listing keyboards. (#11250)

This commit is contained in:
Nick Brassel 2020-12-20 19:08:39 +11:00 committed by GitHub
parent 63362a9c5e
commit 13bbeefc5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,8 +3,8 @@
#
# This allows us to exclude keyboards by including a .noci file.
find keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do
keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!')
find -L keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do
keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!')
[ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard"
done