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

186 B

run command and display error or success

<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