mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
extras/keymap/check-keymaps.sh: Ignore comment-only lines
This commit is contained in:
parent
9a6741ba2f
commit
386aa6ebd8
@ -13,7 +13,8 @@ RULES=$SRCDIR/extras/keymap/95-keymap.rules
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
missing=$(join -v 2 <(awk '{print tolower(substr($1,5))}' $KEYLIST | sort -u) <(awk '{print $2}' ${KEYMAPS_DIR}/*|sort -u))
|
missing=$(join -v 2 <(awk '{print tolower(substr($1,5))}' $KEYLIST | sort -u) \
|
||||||
|
<(grep -hv '^#' ${KEYMAPS_DIR}/*| awk '{print $2}' | sort -u))
|
||||||
[ -z "$missing" ] || {
|
[ -z "$missing" ] || {
|
||||||
echo "ERROR: unknown key names in extras/keymap/keymaps/*:" >&2
|
echo "ERROR: unknown key names in extras/keymap/keymaps/*:" >&2
|
||||||
echo "$missing" >&2
|
echo "$missing" >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user