mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
021fc6ea62
- updated bash scripts - renamed env schema - updated binary archive from tar.gz to tar.xz - update workflows
19 lines
361 B
Bash
Executable file
19 lines
361 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Colors
|
|
green="\e[0;92m"
|
|
red="\e[0;91m"
|
|
nc="\e[0m" # No Color
|
|
|
|
printf "${nc}[${green}Start${nc}]\n"
|
|
if ! go build -o pingbot.out; then
|
|
printf "${nc}[${red}COMPILE ERROR${nc}]\n"
|
|
exit 1
|
|
else
|
|
if ! ./pingbot.out; then
|
|
printf "${nc}[${red}PROGRAM PANIC${nc}]\n"
|
|
exit 1
|
|
else
|
|
printf "${nc}[${red}PROGRAM END${nc}]\n"
|
|
fi
|
|
fi
|