catching exit code. giving myself a chance to cat before exiting with code 0

#388
Raw
Author
Anonymous
Created
Sept. 23, 2021, 8:14 p.m.
Expires
Never
Size
159 bytes
Hits
41
Syntax
Bash
+e
myCommand >| output.json || ${EXIT_CODE}=$!
-e
cat output.json
exit ${EXIT_CODE}