From 53605bd6e828df63ca0581379e90b78443d279cd Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 8 Jan 2024 01:46:21 +0100 Subject: [PATCH] fix: Add package (#546) --- src/reset.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/reset.sh b/src/reset.sh index fadb63b..4d03b6f 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -130,17 +130,14 @@ addPackage() { info "Installing $desc..." - export DEBCONF_NOWARNINGS="yes" - export DEBIAN_FRONTEND="noninteractive" - [ -z "$COUNTRY" ] && setCountry if [[ "${COUNTRY^^}" == "CN" ]]; then sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources fi - apt-get -qq update - apt-get -qq --no-install-recommends -y install "$pkg" > /dev/null + DEBIAN_FRONTEND=noninteractive apt-get -qq update + DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends -y install "$pkg" > /dev/null return 0 }