Skip to content

Commit df7fd8f

Browse files
committed
batchspawner/batchspawner: Don't use -o pipefail in /bin/sh scripts
- `-o pipefail` is a bashism, so that the spawner scripts that use `/bin/sh` can't possibly work if it's not linked to bash. As a immediate workaround, remove the option on the non-bash scripts. A long-term plan will come later. - Closes: #184, Discussion: #184 - Fixes up: #177 - Follow-up in: #188
1 parent bc238a0 commit df7fd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

batchspawner/batchspawner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ class TorqueSpawner(BatchSpawnerRegexStates):
504504
#PBS -v {keepvars}
505505
#PBS {options}
506506
507-
set -euo pipefail
507+
set -eu
508508
509509
{prologue}
510510
{cmd}
@@ -545,7 +545,7 @@ class PBSSpawner(TorqueSpawner):
545545
#PBS -v {{keepvars}}
546546
{% if options %}#PBS {{options}}{% endif %}
547547
548-
set -euo pipefail
548+
set -eu
549549
550550
{{prologue}}
551551
{{cmd}}
@@ -784,7 +784,7 @@ class LsfSpawner(BatchSpawnerBase):
784784
#BSUB -o {homedir}/.jupyterhub.lsf.out
785785
#BSUB -e {homedir}/.jupyterhub.lsf.err
786786
787-
set -euo pipefail
787+
set -eu
788788
789789
{prologue}
790790
{cmd}

0 commit comments

Comments
 (0)