[x3d-public] Bash function to catch return value

John Carlson yottzumm at gmail.com
Fri Jul 21 22:15:07 PDT 2023


Linux folks:

Does anyone have a bash function (not a separate script) to check the exit
status of the passed in  pipeline or passed in exit status, print out the
passed in error message, and exit the script if the exit status indicates
failure?

Thanks!

Should be fairly easy to write?

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230722/c837d379/attachment.html>


More information about the x3d-public mailing list