We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I am adapting the sample hook script for Cloudflare API. I notice a possible problem that may cause the script to fail silently.
At the line
uacme/nsupdate.sh
Line 126 in 5edec0e
break
ns_doupdate
Line 136 in 5edec0e
$?
res=$?
[ $res -eq 0 ]
0
Finally, the script returns 0 even though ns_doupdate has failed.
A quick fix is to replace break with return $res.
return $res
(I do not have a bind server to test the original script. Please let me know if I missed something by mistake.)
The text was updated successfully, but these errors were encountered:
9bde433
No branches or pull requests
Hello,
I am adapting the sample hook script for Cloudflare API. I notice a possible problem that may cause the script to fail silently.
At the line
uacme/nsupdate.sh
Line 126 in 5edec0e
break
is executed ifns_doupdate
returns non-zero code. Then it flows to the lineuacme/nsupdate.sh
Line 136 in 5edec0e
$?
is always 0 because previousres=$?
(and[ $res -eq 0 ]
?) itself updates$?
to be0
.Finally, the script returns
0
even thoughns_doupdate
has failed.A quick fix is to replace
break
withreturn $res
.(I do not have a bind server to test the original script. Please let me know if I missed something by mistake.)
The text was updated successfully, but these errors were encountered: