2021-07-29 19:54:55 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Colors
|
2021-09-01 12:49:56 +00:00
|
|
|
green="\e[0;92m"
|
|
|
|
red="\e[0;91m"
|
|
|
|
nc="\e[0m" # No Color
|
2021-07-29 19:54:55 +00:00
|
|
|
|
2021-09-01 12:49:56 +00:00
|
|
|
printf "${nc}[${green}Start${nc}]\n"
|
2021-07-29 19:54:55 +00:00
|
|
|
if ! go build -o pingbot.out; then
|
2021-09-01 12:49:56 +00:00
|
|
|
printf "${nc}[${red}COMPILE ERROR${nc}]\n"
|
2021-07-29 19:54:55 +00:00
|
|
|
exit 1
|
|
|
|
else
|
2021-09-01 12:49:56 +00:00
|
|
|
if ! ./pingbot.out; then
|
|
|
|
printf "${nc}[${red}PROGRAM PANIC${nc}]\n"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
printf "${nc}[${red}PROGRAM END${nc}]\n"
|
|
|
|
fi
|
2021-07-29 19:54:55 +00:00
|
|
|
fi
|