update to check if wget exists and offer to install it

This commit is contained in:
VetheonGames 2024-01-08 14:58:02 -07:00
parent 865478e64b
commit 2630490dee

View File

@ -56,6 +56,25 @@ fi
sleep 2 sleep 2
# Check if wget is installed
echo "Checking if wget is installed..."
if ! command -v wget &>/dev/null; then
echo "wget is not installed."
read -p "Do you want to install wget? [Y/n] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
sudo pacman -Syu wget
else
echo "wget not installed. Exiting."
exit 1
fi
fi
sleep 2
echo "wget is installed!"
echo "Compatible Go version is installed!" echo "Compatible Go version is installed!"
echo "Checking if Git is installed..." echo "Checking if Git is installed..."