|
@ -5,7 +5,7 @@ function idem_apt_install() { |
|
|
[ -z "${VERBOSE:-}" ] && VERBOSE=false |
|
|
[ -z "${VERBOSE:-}" ] && VERBOSE=false |
|
|
# || echo "VERBOSE is set to $VERBOSE" |
|
|
# || echo "VERBOSE is set to $VERBOSE" |
|
|
for i in "$@"; do |
|
|
for i in "$@"; do |
|
|
if ! (/usr/bin/dpkg-query --status "$i" >/dev/null 2>&1); then |
|
|
|
|
|
|
|
|
if ! dpkg -l "$i" 2>/dev/null | grep -q ^ii; then |
|
|
sudo apt install -y "$i" |
|
|
sudo apt install -y "$i" |
|
|
elif $VERBOSE; then |
|
|
elif $VERBOSE; then |
|
|
echo "apt package <$i> already installed!" |
|
|
echo "apt package <$i> already installed!" |
|
|