From 7629744a3dbca313b55882d3a63135b2a9b27805 Mon Sep 17 00:00:00 2001 From: bleep_blop Date: Sun, 24 Dec 2017 06:53:20 +0000 Subject: [PATCH] separate flags from shebang --- mkosi.build | 3 ++- src/basic/generate-af-list.sh | 3 ++- src/basic/generate-arphrd-list.sh | 3 ++- src/basic/generate-cap-list.sh | 3 ++- src/basic/generate-errno-list.sh | 3 ++- src/basic/generate-socket-protocol-list.sh | 3 ++- src/boot/efi/no-undefined-symbols.sh | 3 ++- src/journal/generate-audit_type-list.sh | 3 ++- src/udev/generate-keyboard-keys-gperf.sh | 3 ++- src/udev/generate-keyboard-keys-list.sh | 3 ++- test/networkd-test.py | 3 ++- tools/add-git-hook.sh | 3 ++- tools/find-build-dir.sh | 3 ++- tools/meson-check-compilation.sh | 3 ++- tools/meson-check-help.sh | 3 ++- tools/meson-git-contrib.sh | 3 ++- tools/meson-hwdb-update.sh | 3 ++- tools/meson-make-symlink.sh | 3 ++- units/meson-add-wants.sh | 3 ++- 19 files changed, 38 insertions(+), 19 deletions(-) diff --git a/mkosi.build b/mkosi.build index 0781f0d9c4..38cfe25025 100755 --- a/mkosi.build +++ b/mkosi.build @@ -1,4 +1,5 @@ -#!/bin/sh -ex +#!/bin/sh +set -ex # This file is part of systemd. # diff --git a/src/basic/generate-af-list.sh b/src/basic/generate-af-list.sh index 8d9cdd1836..fa74198e58 100755 --- a/src/basic/generate-af-list.sh +++ b/src/basic/generate-af-list.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu $1 -E -dM -include sys/socket.h - = 7\n\ diff --git a/src/udev/generate-keyboard-keys-list.sh b/src/udev/generate-keyboard-keys-list.sh index 7a74e0dae1..c055f7c756 100755 --- a/src/udev/generate-keyboard-keys-list.sh +++ b/src/udev/generate-keyboard-keys-list.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu $1 -dM -include linux/input.h - / { next } diff --git a/test/networkd-test.py b/test/networkd-test.py index 3918d85ef0..860c9f1898 100755 --- a/test/networkd-test.py +++ b/test/networkd-test.py @@ -720,7 +720,8 @@ class NetworkdClientTest(ClientTestBase, unittest.TestCase): self.addCleanup(os.remove, script) with os.fdopen(fd, 'w+') as f: f.write('''\ -#!/bin/sh -eu +#!/bin/sh +set -eu mkdir -p /run/systemd/network mkdir -p /run/systemd/netif mount -t tmpfs none /run/systemd/network diff --git a/tools/add-git-hook.sh b/tools/add-git-hook.sh index 4ee919faf4..c1db99b18a 100755 --- a/tools/add-git-hook.sh +++ b/tools/add-git-hook.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu cd "$MESON_SOURCE_ROOT" diff --git a/tools/find-build-dir.sh b/tools/find-build-dir.sh index 33b40f93f7..06b6297ea5 100755 --- a/tools/find-build-dir.sh +++ b/tools/find-build-dir.sh @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e # Try to guess the build directory: # we look for subdirectories of the parent directory that look like ninja build dirs. diff --git a/tools/meson-check-compilation.sh b/tools/meson-check-compilation.sh index d3b2a312fd..ce39e1684b 100755 --- a/tools/meson-check-compilation.sh +++ b/tools/meson-check-compilation.sh @@ -1,3 +1,4 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu "$@" '-' -o/dev/null