mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
689e833dbb
- Added ctx to backend ping - Log changed Stderr to Stdout - Added cluster functional - Updated more files
17 lines
326 B
Bash
Executable file
17 lines
326 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Colors
|
|
red="\e[0;91m"
|
|
reset="\e[0m"
|
|
|
|
if ! go build -o pingbot.out; then
|
|
echo -e "${reset}[${red}COMPILE ERROR${reset}]"
|
|
exit 1
|
|
else
|
|
if ! ./pingbot.out; then
|
|
echo -e "${reset}[${red}PROGRAM PANIC${reset}]"
|
|
exit 1
|
|
else
|
|
echo -e "${reset}[${red}PROGRAM END${reset}]"
|
|
fi
|
|
fi
|