Skip to content

Commit 7fec41a

Browse files
add bash options
`-e`: exits upon encountering any error, usually with rc 1 `-u`: exits upon encountering any unset variables; not applicable here, but a good practise nonetheless `-o pipefail`: enables the `pipefail` option which terminates a pipeline upon encountering an error in any of its steps `-x`: repeats shell commands as they are executed, i.e. "shell tracing"
1 parent e7bbf98 commit 7fec41a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: examples/docker-rootful.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ provision:
5959
#!/bin/bash
6060
# Increase inotify limits to prevent nested Kubernetes control planes
6161
# from crash looping.
62+
set -eux -o pipefail
6263
echo 'fs.inotify.max_user_watches = 524288' >> /etc/sysctl.conf
6364
echo 'fs.inotify.max_user_instances = 512' >> /etc/sysctl.conf
6465
sysctl --system

0 commit comments

Comments
 (0)