[fix] Update hostdeps.sh to do a non-interactive apt install

Change-Id: Ib889aeebb00b19c9e9d99c4f49d0370a5d54ff52
This commit is contained in:
Carter, Matt (mc981n) 2019-08-20 13:26:05 -05:00 committed by Matthew Carter
parent e2bb7cb0f9
commit 09369182c8
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ then
done
if [[ ${#added_pkgs[@]} -gt 0 ]]
then
apt install -y --no-install-recommends "${added_pkgs[@]}"
DEBIAN_FRONTEND=noninteractive apt \
-o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" \
install -y --no-install-recommends "${added_pkgs[@]}"
fi
else
echo "Only support testing on Ubuntu hosts at this time."