~apt-fast/apt-fast/apt-fast-ro

« back to all changes in this revision

Viewing changes to quick-install.sh

  • Committer: GitHub
  • Author(s): slycordinator
  • Date: 2022-01-13 20:03:08 UTC
  • Revision ID: git-v1:9be55fe3c0a4ba770521a13745025d89bc7f7951
don't rely on dpkg to check for aria2/aria2c (#195)

Changes to check for aria2c with the shell's built-in "type" command instead of querying dpkg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
set -e
3
3
 
4
4
apt_fast_installation() {
5
 
  if ! dpkg-query --show aria2 >/dev/null 2>&1; then
 
5
  if ! type aria2c >/dev/null 2>&1; then
6
6
    sudo apt-get update
7
7
    sudo apt-get install -y aria2
8
8
  fi