#!/bin/bash -xe

export DEBIAN_FRONTEND=noninteractive

echo "Installing git"
sudo apt-add-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get -y install git

echo "Installing ansible"
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible

echo "Cloning https://github.com/marvinpinto/dotfiles.git"
cd /tmp
sudo rm -rf dotfiles
git clone https://github.com/marvinpinto/dotfiles.git

echo "Bootstrapping system"
cd dotfiles
make system

echo "Installing dotfiles"
make dotfiles

echo "Upgrading Ubuntu"
cd /tmp
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get autoremove -y --purge

#!/bin/bash -xe

export DEBIAN_FRONTEND=noninteractive

echo "Installing git"
sudo apt-add-repository -y ppa:git-core/ppa
sudo apt-get -qq update
sudo apt-get -y install git

echo "Installing ansible"
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get -qq update
sudo apt-get install -y ansible

echo "Cloning https://github.com/marvinpinto/dotfiles.git"
cd /tmp
sudo rm -rf dotfiles
git clone https://github.com/marvinpinto/dotfiles.git

echo "Bootstrapping system"
cd dotfiles
make system

echo "Installing dotfiles"
make dotfiles

echo "Upgrading Ubuntu"
cd /tmp
sudo apt-get -qq update
sudo apt-get -y dist-upgrade
sudo apt-get autoremove -y --purge

Make the apt-get updates less verbose
Make the apt-get updates less verbose
