Logic and missing text
This commit is contained in:
@@ -60,10 +60,10 @@ if [ "$install" == "1" ]; then
|
|||||||
|
|
||||||
echo "Attempting to install Docker now"
|
echo "Attempting to install Docker now"
|
||||||
echo ""
|
echo ""
|
||||||
sudo apt update && install git build-essential apt-transport-https ca-certificates curl software-properties-common -y
|
sudo apt update && sudo apt install git build-essential apt-transport-https ca-certificates curl software-properties-common -y
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $vers stable"
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $vers stable"
|
||||||
sudo apt update && install docker-ce docker-compose -y
|
sudo apt update && sudo apt install docker-ce docker-compose -y
|
||||||
elif [ "$os" == "2" ]; then
|
elif [ "$os" == "2" ]; then
|
||||||
su -c 'yum update && yum install git'
|
su -c 'yum update && yum install git'
|
||||||
echo ""
|
echo ""
|
||||||
@@ -84,12 +84,6 @@ if [ "$install" == "1" ]; then
|
|||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
brew install git
|
brew install git
|
||||||
else
|
else
|
||||||
echo ""
|
|
||||||
echo "Attempting to install Docker now"
|
|
||||||
echo ""
|
|
||||||
curl -fsSL get.docker.com -o get-docker.sh
|
|
||||||
sudo sh get-docker.sh
|
|
||||||
sudo apt install docker-compose
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
elif [ "$os" == "4" ]; then
|
elif [ "$os" == "4" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user