Merge pull request #408 from TheHADILP/fix-sudo

Install sudo before apt-fast
@TheHADILP Nice catch :bowtie:
This commit is contained in:
Marco Ochse 2019-08-02 17:35:42 +02:00 committed by GitHub
commit 08d2665f66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,11 +219,12 @@ 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
apt-get -y install curl wget apt-get -y install curl wget sudo
fi fi
echo "### Installing apt-fast" echo "### Installing apt-fast"
/bin/bash -c "$(curl -sL https://raw.githubusercontent.com/ilikenwf/apt-fast/master/quick-install.sh)" /bin/bash -c "$(curl -sL https://raw.githubusercontent.com/ilikenwf/apt-fast/master/quick-install.sh)"