summaryrefslogtreecommitdiff
path: root/src/udev/generate-keyboard-keys-list.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-18 17:14:48 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-23 21:47:29 -0400
commit86b3ca7a667baef407ccfa28166638ed0e64c26c (patch)
treecc667f70f66bf60c3266edc335f7d6dc1591e90a /src/udev/generate-keyboard-keys-list.sh
parenta923e085af00dfd47eafbbd6964398a10e5a4f19 (diff)
downloadsystemd-86b3ca7a667baef407ccfa28166638ed0e64c26c.tar.gz
meson: use "sh -eu" and make .sh +x, .py -x
Shell scripts should be executable so that meson reports their invocation succinctly (does not print 'sh' '-e'). Python scripts should not be executable so that meson does the detection of the right python binary itself. Add -u everywhere to catch potential errors.
Diffstat (limited to 'src/udev/generate-keyboard-keys-list.sh')
-rwxr-xr-x[-rw-r--r--]src/udev/generate-keyboard-keys-list.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/generate-keyboard-keys-list.sh b/src/udev/generate-keyboard-keys-list.sh
index 91635caebc..5fb5ed0bbe 100644..100755
--- a/src/udev/generate-keyboard-keys-list.sh
+++ b/src/udev/generate-keyboard-keys-list.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh -eu
$1 -dM -include linux/input.h - </dev/null | \
awk '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($2 != "KEY_MAX") { print $2 } }'