Check for sudo

This commit is contained in:
Sebastian Haderecker
2019-07-04 10:59:03 +00:00
parent d9f7360daf
commit 0baff7340d

View File

@ -219,7 +219,8 @@ function fuCHECKPACKAGES {
# Make sure dependencies for apt-fast are installed # Make sure dependencies for apt-fast are installed
myCURL=$(which curl) myCURL=$(which curl)
myWGET=$(which wget) myWGET=$(which wget)
if [ "$myCURL" == "" ] || [ "$myWGET" == "" ] mySUDO=$(which sudo)
if [ "$myCURL" == "" ] || [ "$myWGET" == "" ] || [ "$mySUDO" == "" ]
then then
echo "### Installing deps for apt-fast" echo "### Installing deps for apt-fast"
apt-get -y update apt-get -y update