mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 11:48:52 +00:00
Merge pull request #408 from TheHADILP/fix-sudo
Install sudo before apt-fast @TheHADILP Nice catch :bowtie:
This commit is contained in:
commit
08d2665f66
1 changed files with 3 additions and 2 deletions
|
@ -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)"
|
||||||
|
|
Loading…
Reference in a new issue