From 1d89906f333fe3221f2e83306daf0d5680bbf770 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 3 Feb 2022 16:25:45 +0400 Subject: [PATCH] VERBOSE PREFIX --- lib/functions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/functions.sh b/lib/functions.sh index 1e37fc7..b70c4e4 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -3,6 +3,8 @@ function idem_apt_install() { for i in $@; do if ! (/usr/bin/dpkg-query --status "$i" >/dev/null 2>&1); then sudo apt install -y "$i" + else + $VERBOSE && echo "$PREFIX apt package <$i> already installed!" fi done }