Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set: Illegal option -o pipefail #21

Closed
bieganski opened this issue May 7, 2021 · 2 comments
Closed

set: Illegal option -o pipefail #21

bieganski opened this issue May 7, 2021 · 2 comments

Comments

@bieganski
Copy link

$ cat package.json | grep esm
/bin/sh: 1: set: Illegal option -o pipefail
  at file:///tmp/skrypt.mjs:3:8

after changing file index.mjs

let child = exec('set -euo pipefail;' + cmd, options)

to

    let child = exec('set -eu;' + cmd, options)

it works as expected.
My default shell is bash, I'm using Konsole 19.12.3

@antonmedv
Copy link
Collaborator

By default nodejs using /bin/sh

Add to beginning of file $.shell = ‘/bin/bash’

@antonmedv
Copy link
Collaborator

Bash now is used by default- fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants