From 8fbe0663154f2e3bd83b4c2a8549b1dc303d6129 Mon Sep 17 00:00:00 2001 From: pvincent Date: Fri, 20 Aug 2021 23:31:37 +0400 Subject: [PATCH] fix: idem_apt_install requires sudo --- lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index af7abe4..1e37fc7 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -2,7 +2,7 @@ function idem_apt_install() { for i in $@; do if ! (/usr/bin/dpkg-query --status "$i" >/dev/null 2>&1); then - /usr/bin/apt install -y "$i" + sudo apt install -y "$i" fi done }