diff --git a/setup.sh b/setup.sh index eb338a1d..0d7e703e 100755 --- a/setup.sh +++ b/setup.sh @@ -30,11 +30,11 @@ function install_essentials() { ;; 'Linux') echo "Linux detected." - hash apt-get &>/dev/null || echo 'apt-get is missing.' && exit + hash apt-get &>/dev/null || (echo 'apt-get is missing.' && exit) echo "apt-get found." - apt-get install build-essential - apt-get install git - git clone git@github.com:IvanMalison/dotfiles.git + sudo apt-get install build-essential + sudo apt-get install git + sudo git clone git@github.com:IvanMalison/dotfiles.git cd dotfiles source .debian ;;