Use vps2arch as user-agent (fixes #7)

This commit is contained in:
Felix Yan 2022-04-10 20:51:13 +03:00
parent d03497bdbb
commit 91b078a7de
No known key found for this signature in database
GPG key ID: 786C63F330D7CB92

View file

@ -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