catching exit code. giving myself a chance to cat before exiting with code 0
#388
- Created
- Sept. 23, 2021, 8:14 p.m.
- Expires
- Never
- Size
- 159 bytes
- Hits
- 116
- Syntax
- Bash
+e
myCommand >| output.json || ${EXIT_CODE}=$!
-e
cat output.json
exit ${EXIT_CODE}