diff --git a/allpac/install.sh b/allpac/install.sh index 1c64834..c15a694 100644 --- a/allpac/install.sh +++ b/allpac/install.sh @@ -56,6 +56,25 @@ fi 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 "Checking if Git is installed..."