Skip to content

Commit

Permalink
fix: Add package (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 8, 2024
1 parent 944faaa commit 53605bd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 53605bd

Please sign in to comment.