add -y flag

not sure about the other package managers.
This commit is contained in:
Daniel Hansson
2023-10-04 20:13:13 +02:00
committed by GitHub
parent af077524cc
commit 8d07bc0c11

2
lib.sh
View File

@@ -134,7 +134,7 @@ install_linux_package() {
# osInfo[/etc/alpine-release]=apk
if [ -x "$(command -v apt-get)" ]
then
sudo apt-get install "${1}"
sudo apt-get install "${1}" -y
elif [ -x "$(command -v apk)" ]
then
sudo apk add --no-cache "${1}"