From de4f1a67fe82915e02b25e0400ba42a14f2c8821 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sun, 18 Feb 2018 01:12:21 +0100 Subject: [PATCH] Use curl for downloading instead of wget as it is more commonly installed. --- packages/packages.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/packages.sh b/packages/packages.sh index 948ab4d..9f0f460 100755 --- a/packages/packages.sh +++ b/packages/packages.sh @@ -26,6 +26,10 @@ pip3_install() { pip3 install --user -U "$@" } +download() { + curl -L "$@" +} + ### # Actual package installation code from here @@ -54,7 +58,7 @@ if has_tags pm:pacman; then ( dir="$(mktemp -d)" cd "${dir}" - wget https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz -O- | tar -xz --strip=1 + download https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz | tar -xz --strip=1 makepkg -sri --noconfirm cd rm -rf "${dir}"