mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
No internet menu.
This commit is contained in:
@@ -442,6 +442,11 @@ fi
|
||||
echo -e ${ACTION}Checking internet availability${NOCOLOR}
|
||||
if ! ping -c 1 google.com > /dev/null 2>&1; then
|
||||
echo -e ${ERROR}No internet. Skipping version checks.${NOCOLOR}
|
||||
yad --image=$DIR/images/corps-icon.png --center \
|
||||
--title "No Internet Detected" \
|
||||
--text "The installer did not detect a current internet connection. \n\n \
|
||||
This installer requires internet access to determine current versions of the software and download for installation \
|
||||
\n\nWould you like to continue anyway?" ${r} ${c}
|
||||
return
|
||||
else
|
||||
echo -e ${READY}Internet confirmed${NOCOLOR}
|
||||
|
||||
Reference in New Issue
Block a user