Unverified Commit 53605bd6 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Add package (#546)

parent 944faaa9
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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
}