script: apt-get update before apt-get install in dependency_check()

This commit is contained in:
th33xitus
2021-03-25 21:40:16 +01:00
parent 104089ea3d
commit b9fe29068d

View File

@@ -291,7 +291,7 @@ dependency_check(){
echo -e "${cyan}$element ${default}"
done
echo
sudo apt-get install ${inst[@]} -y
sudo apt-get update && sudo apt-get install ${inst[@]} -y
ok_msg "Dependencies installed!"
#clearing the array
unset inst