1
0
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:
Martin Pitt 2010-01-21 01:09:16 +01:00
parent 9a6741ba2f
commit 386aa6ebd8

View File

@ -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