update to check if wget exists and offer to install it
This commit is contained in:
parent
865478e64b
commit
2630490dee
|
@ -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..."
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user