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

stop script generate a status 1 #68

Open
darlanmendonca opened this issue Dec 15, 2017 · 3 comments
Open

stop script generate a status 1 #68

darlanmendonca opened this issue Dec 15, 2017 · 3 comments

Comments

@darlanmendonca
Copy link

I have a shell script with the following script

#!/bin/bash

set -e

./node_modules/.bin/pug hotsite/index.pug \
--out docs/ \
--silent \
--watch hotsite/index.pug

unfortunately, when I stop script typing ctrl+c, I receive the following error on npm

screen shot 2017-12-15 at 08 38 06

Any ideas how to proceed to avoid this behavior?

@baglio
Copy link

baglio commented Mar 18, 2019

Same here.

@ahmadalfy
Copy link

Anyone found a workaround for this?

@simboonlong
Copy link

probably can trick it to exit by || exit 0?

$ pug foo bar --out /tmp --watch || exit 0

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

4 participants