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

Executon fails with set -o errexit #8

Open
crowtrobot opened this issue Nov 2, 2014 · 1 comment
Open

Executon fails with set -o errexit #8

crowtrobot opened this issue Nov 2, 2014 · 1 comment

Comments

@crowtrobot
Copy link

In a script with "set -o errexit" the read_ini will fail. As a work-around, turn off errexit before using read_ini:

set +o errexit
read_ini ~/.script.ini
set -o errexit 
@crowtrobot
Copy link
Author

Oh, actually looks like set -o unset also causes problems. Work-around with this:
set +o errexit ; set +o nounset
read_ini ~/.script.ini
set -o errexit ; set -o nounset

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

1 participant