add -y flag
not sure about the other package managers.
This commit is contained in:
1 parent
af077524cc
commit
8d07bc0c11
1 file changed
+1
-1
@@ -134,7 +134,7 @@ install_linux_package() {
|
|||||||
# osInfo[/etc/alpine-release]=apk
|
# osInfo[/etc/alpine-release]=apk
|
||||||
if [ -x "$(command -v apt-get)" ]
|
if [ -x "$(command -v apt-get)" ]
|
||||||
then
|
then
|
||||||
sudo apt-get install "${1}"
|
sudo apt-get install "${1}" -y
|
||||||
elif [ -x "$(command -v apk)" ]
|
elif [ -x "$(command -v apk)" ]
|
||||||
then
|
then
|
||||||
sudo apk add --no-cache "${1}"
|
sudo apk add --no-cache "${1}"
|
||||||
|
|||||||
Reference in new issue
Block a user