From 587ad62fe9956ad13234ebd4851c6c1fc8ea1e51 Mon Sep 17 00:00:00 2001 From: "log :3" <65839350+logzinga@users.noreply.github.com> Date: Wed, 12 Oct 2022 11:15:59 +1100 Subject: [PATCH] Internet connection test --- setup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.sh b/setup.sh index 05a7907..aa65cef 100644 --- a/setup.sh +++ b/setup.sh @@ -1,2 +1,12 @@ #!/bin/bash +echo "Are you connected to the internet? [ y / n ]" +read INTERNETCONNECTION + +if [ $INTERNETCONNECTION = n ] + then + echo "You must be connected to the internet to continue" + sleep 2 + clear + exit +fi