Skip to content

Commit

Permalink
changed wget --user-agent to -U
Browse files Browse the repository at this point in the history
some busybox instances only support short hand tags.
  • Loading branch information
FriedZombie committed Feb 17, 2014
1 parent d7edcae commit 5bff12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatekeeper/gatekeeperUpdate
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ tunlrApi() {
json=`{
[ "$VERBOSE" -ge 4 ] || exec 2>/dev/null
case "${CLIENT}" in
wget) wget -O - --user-agent "${AGENT}" ${xOPT} "$url" ;;
wget) wget -O - -U "${AGENT}" ${xOPT} "$url" ;;
curl) curl --fail --user-agent "${AGENT}" ${xOPT} "$url" ;;
*) messages 'api/client' ;;
esac
Expand Down

0 comments on commit 5bff12f

Please sign in to comment.