go-pingbot/nodemon.sh
2021-08-22 12:04:12 +02:00

17 lines
325 B
Bash
Executable file

#!/usr/bin/env bash
# Colors
RED="\e[0;91m"
NC="\e[0m" # No Color
if ! go build -o pingbot.out; then
echo -e "${reset}[${RED}COMPILE ERROR${NC}]"
exit 1
else
if ! ./pingbot.out; then
echo -e "${reset}[${RED}PROGRAM PANIC${NC}]"
exit 1
else
echo -e "${reset}[${RED}PROGRAM END${NC}]"
fi
fi