Skip to content

Commit

Permalink
Merge pull request #2649 from shadowmint/bug-install-script-url-2579
Browse files Browse the repository at this point in the history
Update nuget url in install.sh (fixes #2579)
  • Loading branch information
forki authored Aug 23, 2017
2 parents 721e7f3 + 93c0be9 commit b7e31e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ TMP=/tmp/paket/src
LIB=/usr/local/lib
BIN=/usr/local/bin

LATEST=$(curl -s -G -d '$filter=Id%20eq%20'"'"'Paket'"'"'%20and%20IsPrerelease%20eq%20false&$orderby=LastUpdated%20desc&$top=1' "http://www.nuget.org/api/v2/Packages()" | sed -n 's;.*src="\([^"]*\).*;\1;p')
LATEST=$(curl -s -G -d '$filter=Id%20eq%20'"'"'Paket'"'"'%20and%20IsPrerelease%20eq%20false&$orderby=LastUpdated%20desc&$top=1' "https://www.nuget.org/api/v2/Packages()" | sed -n 's;.*src="\([^"]*\).*;\1;p')

if [ ! "$LATEST" ]; then
echo "Could not find a paket source on nuget.org. Please check your internet connection and access to http://www.nuget.org."
echo "Could not find a paket source on nuget.org. Please check your internet connection and access to https://www.nuget.org."
exit 1
fi

Expand Down

0 comments on commit b7e31e3

Please sign in to comment.