summaryrefslogtreecommitdiffstats
path: root/tools/meson-check-help.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-18 23:14:48 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-24 03:47:29 +0200
commit86b3ca7a667baef407ccfa28166638ed0e64c26c (patch)
treecc667f70f66bf60c3266edc335f7d6dc1591e90a /tools/meson-check-help.sh
parentmeson: use run_target instead of custom_target where appropriate (diff)
downloadsystemd-86b3ca7a667baef407ccfa28166638ed0e64c26c.tar.xz
systemd-86b3ca7a667baef407ccfa28166638ed0e64c26c.zip
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 'tools/meson-check-help.sh')
-rwxr-xr-xtools/meson-check-help.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/meson-check-help.sh b/tools/meson-check-help.sh
index 2f7ba3978d..7102866a5c 100755
--- a/tools/meson-check-help.sh
+++ b/tools/meson-check-help.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh -eu
# output width
if "$1" --help | grep -v 'default:' | grep -E -q '.{80}.'; then