Use vps2arch as user-agent (fixes #7)
This commit is contained in:
parent
d03497bdbb
commit
91b078a7de
1 changed files with 2 additions and 2 deletions
4
vps2arch
4
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue