refactor(run): change set statements

Use the long form name for each option instead of short hand names or a
combination of both - e.g. `set -eu` and `set -o pipefail`.
This commit is contained in:
Oliver Davies 2023-11-22 21:53:50 +00:00
parent 9b360be240
commit b1571f3174
5 changed files with 9 additions and 4 deletions

View file

@ -15,3 +15,4 @@
* `App\Enum\ProjectType` now returns a string. * `App\Enum\ProjectType` now returns a string.
* `App\Enum\Webserver` now returns a string. * `App\Enum\Webserver` now returns a string.
* `ConfigurationValidatorTest` no longer performs serialisation. * `ConfigurationValidatorTest` no longer performs serialisation.
* Use `set -o errexit` and `set -o pipefail` in `run` scripts instead of `set -eu`.

View file

@ -2,7 +2,8 @@
# {{ managedText | raw }} # {{ managedText | raw }}
set -eu set -o errexit
set -o pipefail
{% set isFlake = flake is defined %} {% set isFlake = flake is defined %}

View file

@ -2,7 +2,8 @@
# {{ managedText | raw }} # {{ managedText | raw }}
set -eu set -o errexit
set -o pipefail
# Run automated tests as part of the Continuous Integration (CI) pipeline. # Run automated tests as part of the Continuous Integration (CI) pipeline.
function ci:test { function ci:test {

View file

@ -2,7 +2,8 @@
# {{ managedText | raw }} # {{ managedText | raw }}
set -eu set -o errexit
set -o pipefail
{% set isDocker = flake is not defined %} {% set isDocker = flake is not defined %}
{% set isFlake = flake is defined %} {% set isFlake = flake is defined %}

View file

@ -2,7 +2,8 @@
# {{ managedText | raw }} # {{ managedText | raw }}
set -eu set -o errexit
set -o pipefail
# Disable Git hooks. # Disable Git hooks.
function git-hooks:off { function git-hooks:off {