From 649a565801ef8b86368b520d81d4dbf8b7a04153 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Sun, 24 Jan 2016 20:35:24 +0000 Subject: [PATCH] run apt-get install as sudo when resolving dependencies --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index c8048811..aae159dd 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -324,7 +324,7 @@ checkForDependencies(){ echo -n "::: Checking for $i..." if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then echo -n " Not found! Installing...." - apt-get -y -qq install $i > /dev/null & spinner $! + $SUDO apt-get -y -qq install $i > /dev/null & spinner $! echo " done!" else echo " already installed!"