Skip to content

Commit e7a29da

Browse files
committed
Print generated links for debugging
1 parent 2d66ca5 commit e7a29da

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/dotnet-install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,9 +1162,15 @@ generate_download_links() {
11621162
done
11631163
fi
11641164
1165-
for link in ${download_links[@]}
1165+
if [[ "${#download_links[@]}" -eq 0 ]]; then
1166+
say_err "Failed to resolve the exact version number."
1167+
return 1
1168+
fi
1169+
1170+
say_verbose "Generated ${#download_links[@]} links."
1171+
for link_index in ${!download_links[@]}
11661172
do
1167-
echo "Link: $link"
1173+
say_verbose "Link $link_index: ${link_types[$link_index]}, ${effective_versions[$link_index]}, ${download_links[$link_index]}"
11681174
done
11691175
}
11701176

0 commit comments

Comments
 (0)