Skip to content

Commit

Permalink
Merge pull request dotnet/core-setup#2363 from karajas/useWget
Browse files Browse the repository at this point in the history
Allow repoapi_client.sh to use wget instead of curl

Commit migrated from dotnet/core-setup@05b1603
  • Loading branch information
karajas authored May 11, 2017
2 parents 28f2d84 + 87e1f0c commit 48076d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools-local/scripts/publish/repoapi_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function AddPackage
fi
packageUrl=$(grep "sourceUrl" $packageFile | head -n 1 | awk '{print $2}')
echo "Adding package to $server [$packageUrl]"
curl -i -k "$baseurl/v1/packages" --data @$packageFile -H "Content-Type: application/json"
#Workaround no curl on image
wget --header "Content-Type: application/json" --post-file $packageFile --no-check-certificate "$baseurl/v1/packages"
BailIf $?
echo ""
}
Expand Down Expand Up @@ -186,4 +187,4 @@ else
echo "-addpkgs [FILENAME] : Add packages to repo using urls contained in FILENAME"
echo "-delrepo REPOID : Delete the specified repo by ID"
echo "-delpkg PKGID : Delete the specified package by ID"
fi
fi

0 comments on commit 48076d3

Please sign in to comment.