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

test18.sh always returns 0 (OK) #30

Open
duscha opened this issue Aug 28, 2017 · 1 comment
Open

test18.sh always returns 0 (OK) #30

duscha opened this issue Aug 28, 2017 · 1 comment

Comments

@duscha
Copy link

duscha commented Aug 28, 2017

Due to the while-loop over server being executed in their own subprocess, the global error variable err is never changed to 1. Therefore, even if NSEC3PARAM isn't available, the script always exits with 0.

Need to change the while-loop into a for-loop for example.

for server in dig NS ${1} +short; do
echo "Server: ${server} "
....

@cstrotm
Copy link
Contributor

cstrotm commented Aug 30, 2017

Hi duscha,

thanks for reporting, I'll look into the issue and report back.

-- Carsten

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