From f6d9188810ebb2c92e1ac59991b72df053016a03 Mon Sep 17 00:00:00 2001 From: Adphi Date: Thu, 19 Apr 2018 20:27:23 +0200 Subject: [PATCH] Fix sudo --- tools/install.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index a66d5b97..04618530 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -27,7 +27,7 @@ main() { CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l) if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then printf "${YELLOW}Zsh is not installed!${NORMAL} Installing zsh\n" - apt-get install zsh -y + sudo apt-get install zsh -y fi unset CHECK_ZSH_INSTALLED @@ -42,7 +42,7 @@ main() { fi printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n" - apt-get install -y fonts-powerline + sudo apt-get install -y fonts-powerline # Prevent the cloned repository from having insecure permissions. Failing to do # so causes compinit() calls to fail with "command not found: compdef" errors @@ -116,9 +116,4 @@ main() { env zsh } -if [ "$EUID" -ne 0 ] - then echo "Please run as root" - exit -fi - main