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

Questions about generated scripts (set -e) #392

Closed
dddachui opened this issue Jun 15, 2023 · 2 comments
Closed

Questions about generated scripts (set -e) #392

dddachui opened this issue Jun 15, 2023 · 2 comments

Comments

@dddachui
Copy link

When bashly ge is generated, set-e in the finished product is valid for the whole world, but some modules can accept error reporting. How can I cancel the global definition? On the contrary, I will define it in my shell

@dddachui
Copy link
Author

I use set +e in my own module

@DannyBen
Copy link
Owner

DannyBen commented Jun 15, 2023

You can set this in the settings.yml file. Simply set strict: ''
If you don't already have a settings file, run bashly add settings to get a sample one.

See Settings#strict

Normally, my recommendation is to leave it as the default setting. If you need set +e there is usually a way around it, and if not, perhaps a local set +e is more appropriate than a global one.

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