function result() { $1 if [ $? != 0 ] then RED='\033[0;31m' NC='\033[0m' echo -e "${RED}ERROR!!! Command: ${1}${NC}" echo "https://kibana.luluandgeorgia.com/goto/332721da9d3457f9eb54f7ac5e4014ec" exit 1 else GREEN='\033[0;32m' NC='\033[0m' echo -e "${GREEN}SUCCESS command: ${1}${NC}" fi }
0 Comment