From 91b078a7debb103328317e38eca2d413da1d9553 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Sun, 10 Apr 2022 20:51:13 +0300 Subject: [PATCH] Use vps2arch as user-agent (fixes #7) --- vps2arch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vps2arch b/vps2arch index a3e8105..170fb5f 100755 --- a/vps2arch +++ b/vps2arch @@ -17,9 +17,9 @@ set -e # Gathering informations about actual environment. if command -v wget >/dev/null 2>&1; then - _download() { wget -O- "$@" ; } + _download() { wget -U vps2arch -O- "$@" ; } elif command -v curl >/dev/null 2>&1; then - _download() { curl -fL "$@" ; } + _download() { curl -A vps2arch -fL "$@" ; } else echo "This script needs curl or wget" >&2 exit 2