Skip to content

Commit ba52ca0

Browse files
committed
bug: add -o to shell pipefail options
Setting the `pipefail` option requires the `-o` flag, I can only imagine this was accidental.
1 parent 73f145e commit ba52ca0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/templates/gcp-linux/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ resource "google_compute_instance" "dev" {
7575
# it.
7676
metadata_startup_script = <<EOMETA
7777
#!/usr/bin/env sh
78-
set -eux pipefail
78+
set -eux -o pipefail
7979
8080
mkdir /root || true
8181
cat <<'EOCODER' > /root/coder_agent.sh

provisionersdk/scripts/bootstrap_darwin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
2-
set -eux pipefail
2+
set -eux -o pipefail
33
# Sleep for a good long while before exiting.
44
# This is to allow folks to exec into a failed workspace and poke around to
55
# troubleshoot.

provisionersdk/scripts/bootstrap_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
2-
set -eux pipefail
2+
set -eux -o pipefail
33
# Sleep for a good long while before exiting.
44
# This is to allow folks to exec into a failed workspace and poke around to
55
# troubleshoot.

0 commit comments

Comments
 (0)