Files
general-scripts-and-system-…/References/Checks-Code.md
T
2026-05-22 20:36:56 -06:00

4 lines
186 B
Markdown

run command and display error or success
```bash
<command>; ret=$? && if [ $ret -ne 0 ]; then echo -e "\n\033[0;31mERRROR! Code: $ret\033[0m"; else echo -e "\033[0;32mOK!\033[0m"; fi
```