Improve installation process (#120)

This commit is contained in:
Masoko
2024-05-24 20:18:03 +03:00
committed by GitHub
parent 360a980732
commit 7fa9eba9d6
2 changed files with 13 additions and 13 deletions

View File

@@ -8,7 +8,20 @@ printm(){
printf -- '-%.0s' $(seq $length); echo ""
}
welcome(){
printm "Raspberry Pi MQTT Monitor installer"
echo "Welcome to the Raspberry Pi MQTT Monitor installer."
echo "This script will install necessary components, configure the monitor and set up a cron job or service."
read -r -p "Ready to proceed? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
printf ""
else
exit
fi
}
main(){
welcome
if [[ $(git --version) ]]; then
git=$(which git)
else