mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-21 17:44:41 -05:00
give wget a custom user agent
This commit is contained in:
parent
9acf8a8bbc
commit
e755556799
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user