We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 404af6f commit 1307a2eCopy full SHA for 1307a2e
1 file changed
src/dotnet/scripts/dotnet-helpers.sh
@@ -18,12 +18,15 @@ DOTNET_RELEASES_INDEX_URL="https://builds.dotnet.microsoft.com/dotnet/release-me
18
fetch_latest_version() {
19
local runtime="$1"
20
local version_field="latest-sdk"
21
+ local releases_index=""
22
23
if [ -n "$runtime" ]; then
24
version_field="latest-runtime"
25
fi
26
- wget -qO- "$DOTNET_RELEASES_INDEX_URL" \
27
+ releases_index="$(wget -qO- "$DOTNET_RELEASES_INDEX_URL")" || return $?
28
+
29
+ printf '%s\n' "$releases_index" \
30
| jq -er --arg version_field "$version_field" '
31
.["releases-index"]
32
| map(
0 commit comments