From d407e7bd85f9f4b5083cd7ca10b14f4823a8ccbf Mon Sep 17 00:00:00 2001 From: Jane Doe Date: Sat, 10 Jan 2026 21:28:55 +0200 Subject: [PATCH] Change: The installer now pings www.google.com to check for internet connection Change: Use wget --quiet mode --- Amelia.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Amelia.sh b/Amelia.sh index a0b2356..305c3c7 100644 --- a/Amelia.sh +++ b/Amelia.sh @@ -1,7 +1,7 @@ #!/bin/bash # Amelia installer for Archlinux - # Version: 1.2.0 + # Version: 1.2.1 # Source: https://gitlab.com/prism7/archery # Contact: leenooks7@gmail.com @@ -491,15 +491,15 @@ connection_check() { ${magenta}###${nc}--------------------------------${magenta}[ ${bwhite}Internet Connection Check${nc} ${magenta}]${nc}--------------------------------${magenta}### " - if ping -c 3 archlinux.org > "${void}" 2>&1; then + if ping -c 3 www.google.com > "${void}" 2>&1; then ok else RED " - ---------------------------------------------------------------------- - ### ${nc}A connection to ${yellowl}'www.archlinux.org' ${nc}could not be established ${red}### - ---------------------------------------------------------------------- + --------------------------------------------------------- + ### ${nc}An internet connection could not be established ${red}### + --------------------------------------------------------- " failure fi @@ -6237,9 +6237,8 @@ pkg_validation() { ok if [[ -n "${web_aur}" ]]; then local prompt="${web_name} Package Validation" - local stage_prompt="${web_name} Package Validation" pacman -S --noconfirm wget > "${void}" - if wget -4 --spider "${web_aur_url}" > "${void}" 2>&1 2> "${log}"; then + if wget -4q --spider "${web_aur_url}" 2> "${log}"; then ok else err_try @@ -6248,12 +6247,11 @@ pkg_validation() { fi if [[ -n "${nvidia_aur}" ]]; then local prompt="Nvidia 580xx Drivers Package Validation" - local stage_prompt="Nvidia 580xx Drivers Package Validation" if [[ ! -e /usr/bin/wget ]]; then pacman -S --noconfirm wget > "${void}" fi - if wget -4 --spider https://aur.archlinux.org/cgit/aur.git/snapshot/nvidia-580xx-utils.tar.gz > "${void}" 2>&1 2> "${log}" && - wget -4 --spider https://aur.archlinux.org/cgit/aur.git/snapshot/nvidia-580xx-settings.tar.gz > "${void}" 2>&1 2> "${log}"; then + if wget -4q --spider https://aur.archlinux.org/cgit/aur.git/snapshot/nvidia-580xx-utils.tar.gz 2> "${log}" && + wget -4q --spider https://aur.archlinux.org/cgit/aur.git/snapshot/nvidia-580xx-settings.tar.gz 2> "${log}"; then ok else err_try