diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d67d56..e7c49fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,3 +15,4 @@ * `App\Enum\ProjectType` now returns a string. * `App\Enum\Webserver` now returns a string. * `ConfigurationValidatorTest` no longer performs serialisation. +* Use `set -o errexit` and `set -o pipefail` in `run` scripts instead of `set -eu`. diff --git a/templates/astro/run.twig b/templates/astro/run.twig index 8cabdb1..c9ebd45 100755 --- a/templates/astro/run.twig +++ b/templates/astro/run.twig @@ -2,7 +2,8 @@ # {{ managedText | raw }} -set -eu +set -o errexit +set -o pipefail {% set isFlake = flake is defined %} diff --git a/templates/drupal/run.twig b/templates/drupal/run.twig index 0d42b75..7e3c922 100755 --- a/templates/drupal/run.twig +++ b/templates/drupal/run.twig @@ -2,7 +2,8 @@ # {{ managedText | raw }} -set -eu +set -o errexit +set -o pipefail # Run automated tests as part of the Continuous Integration (CI) pipeline. function ci:test { diff --git a/templates/fractal/run.twig b/templates/fractal/run.twig index 134a9f6..630b8bd 100755 --- a/templates/fractal/run.twig +++ b/templates/fractal/run.twig @@ -2,7 +2,8 @@ # {{ managedText | raw }} -set -eu +set -o errexit +set -o pipefail {% set isDocker = flake is not defined %} {% set isFlake = flake is defined %} diff --git a/templates/terraform/run.twig b/templates/terraform/run.twig index 116c43c..b20aa06 100755 --- a/templates/terraform/run.twig +++ b/templates/terraform/run.twig @@ -2,7 +2,8 @@ # {{ managedText | raw }} -set -eu +set -o errexit +set -o pipefail # Disable Git hooks. function git-hooks:off {