From 2b9b05e664caf8384d35bbafc91030941f2e0ece Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 4 Aug 2021 15:43:16 +0400 Subject: [PATCH] non-interactive2 --- src/main | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main b/src/main index 8e7338d..18cfef2 100755 --- a/src/main +++ b/src/main @@ -72,16 +72,14 @@ fi echo "# required packages" echo "===================" -sudo export DEBIAN_FRONTEND=noninteractive for package in ${REQUIRED_PACKAGES[@]}; do runVoid dpkg-query --status $package if [ $runVoidError -ne 0 ] ; then echo -n "installing package <$package> ... " ; - sudo apt install -y $package + sudo DEBIAN_FRONTEND=noninteractive apt install -y $package echo "DONE" fi done -sudo unset DEBIAN_FRONTEND echo "## remove hplip annoyance" echo "========================="