diff options
author | MURAOKA Taro <koron.kaoriya@gmail.com> | 2021-01-02 02:24:05 +0900 |
---|---|---|
committer | Zach White <skullydazed@drpepper.org> | 2021-01-01 10:08:32 -0800 |
commit | e11d3d524da21912250dae170fa8e0d2039f6bcb (patch) | |
tree | e31911506f19cd904b79fa161ad7f768bb4d8a9e /util | |
parent | c01a8b030e7f47e8972904f953a3ad27257ab495 (diff) |
speed up list_keyboards.sh
Diffstat (limited to 'util')
-rwxr-xr-x | util/list_keyboards.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/list_keyboards.sh b/util/list_keyboards.sh index 7849cf4d91..1c103e0f11 100755 --- a/util/list_keyboards.sh +++ b/util/list_keyboards.sh @@ -3,8 +3,6 @@ # # This allows us to exclude keyboards by including a .noci file. -find -L 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 | sed 's!keyboards/\(.*\)/rules.mk!\1!' | while read keyboard; do [ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard" done |