]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: set -ex separately
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 26 Jan 2024 14:29:49 +0000 (15:29 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 26 Jan 2024 14:29:49 +0000 (15:29 +0100)
We call the entrypoint.sh script using `bash entrypoint.sh`, so -ex from
the shebang won't be used in that case. Whoopsie.

test/units/testsuite-13.nspawn.sh

index e984d585ca0d91399a3d5409f42862596e5b03b6..6647ac8b2768cbf679a9e17f112459dd7284be44 100755 (executable)
@@ -411,7 +411,8 @@ Port=tcp:60
 Port=udp:60:61
 EOF
     cat >"$root/entrypoint.sh" <<\EOF
-#!/bin/bash -ex
+#!/bin/bash
+set -ex
 
 [[ "$1" == "foo bar" ]]
 [[ "$2" == "bar baz" ]]