From b9fe29068dfd0841ce6950e64e48effe95c87774 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 25 Mar 2021 21:40:16 +0100 Subject: [PATCH] script: apt-get update before apt-get install in dependency_check() --- scripts/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index a6148c4..745c774 100755 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -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