give wget a custom user agent

This commit is contained in:
Dave Murphy 2026-01-15 17:45:02 +00:00
parent 9acf8a8bbc
commit e755556799

View File

@ -100,10 +100,10 @@ INSTALLDIR=/opt/devkitpro
[ ! -z "$INSTALLDIR" ] && mkdir -p $INSTALLDIR && touch $INSTALLDIR/nonexistantfile && rm $INSTALLDIR/nonexistantfile || exit 1;
if test "`curl -V`"; then
if test "`wget -V`"; then
FETCH='wget -U "dkp-buildscript"'
elif test "`curl -V`"; then
FETCH="curl -f -L -O"
elif test "`wget -V`"; then
FETCH=wget
else
echo "ERROR: Please make sure you have wget or curl installed."
exit 1