From acabb25b204dc3bec7ad13f1147d94f94c69e275 Mon Sep 17 00:00:00 2001 From: Mike Henry <11765982+mikemhenry@users.noreply.github.com> Date: Sat, 30 Sep 2023 15:39:39 -0700 Subject: [PATCH] Improve Shell Default Arguments (#152) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a0e53de..614b02a 100644 --- a/README.md +++ b/README.md @@ -304,19 +304,19 @@ Please see [this comment for now](https://github.com/mamba-org/provision-with-mi ## About login shells... -Some shells require special syntax (e.g. `bash -l {0}`). You can set this up with the `defaults` option: +Some shells require special syntax (e.g. `bash -leo pipefail {0}`). You can set this up with the `defaults` option: ```yaml jobs: myjob: defaults: run: - shell: bash -l {0} + shell: bash -leo pipefail {0} {0} # or top-level: defaults: run: - shell: bash -l {0} + shell: bash -leo pipefail {0} {0} jobs: ... ``` @@ -324,7 +324,7 @@ jobs: Find the reasons below (taken from [setup-miniconda](https://github.com/conda-incubator/setup-miniconda/blob/master/README.md#important)): - Bash shells do not use `~/.profile` or `~/.bashrc` so these shells need to be - explicitly declared as `shell: bash -l {0}` on steps that need to be properly + explicitly declared as `shell: bash -leo pipefail {0}` on steps that need to be properly activated (or use a default shell). This is because bash shells are executed with `bash --noprofile --norc -eo pipefail {0}` thus ignoring updated on bash profile files made by `micromamba shell init bash`.