Added an option to accept to install docker or not

This commit is contained in:
alvinlollo
2025-01-30 06:04:32 +00:00
parent fed148da80
commit fbab2f9172
2 changed files with 8 additions and 760 deletions
+8 -7
View File
@@ -25,13 +25,14 @@ sudo apt install -y git-core zsh curl git build-essential
# Do not print commands
set +x
read -p "Run get-docker.sh? [Y/N]: " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
# Install docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
fi
while true; do
read -p "Do you wish to install Docker? [Y/N]: " yn
case $yn in
[Yy]* ) sh -c "$(curl -fsSL https://get.docker.com)"; break;;
[Nn]* ) break;;
* ) echo "Please answer yes or no.";;
esac
done
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"