Browse Source

fix: idem_apt_install requires sudo

master
pvincent 3 years ago
parent
commit
8fbe066315
  1. 2
      lib/functions.sh

2
lib/functions.sh

@ -2,7 +2,7 @@
function idem_apt_install() { function idem_apt_install() {
for i in $@; do for i in $@; do
if ! (/usr/bin/dpkg-query --status "$i" >/dev/null 2>&1); then if ! (/usr/bin/dpkg-query --status "$i" >/dev/null 2>&1); then
/usr/bin/apt install -y "$i"
sudo apt install -y "$i"
fi fi
done done
} }

Loading…
Cancel
Save