mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
22 lines
306 B
Bash
Executable file
22 lines
306 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
clear
|
|
|
|
# Colors
|
|
green="\e[0;92m"
|
|
red="\e[0;91m"
|
|
nc="\e[0m" # No Color
|
|
|
|
printf "${nc}[${green}Start${nc}]\n"
|
|
|
|
# Add permission and start
|
|
chmod +x pingbot.out
|
|
./pingbot.out
|
|
|
|
printf "${nc}[${red}END${nc}]\n"
|
|
|
|
# Wait 2 seconds
|
|
sleep 2
|
|
|
|
# Loop start e.g. on update => restart
|
|
bash start.sh
|