nuget-to-json: use --netrc-optional for curl

Fixes: #389194
(cherry picked from commit 7a36c0ef0b08e07afec4f5300956941db2945efa)

authored by David McFarland and committed by gepbird.tngl.sh 36721b0f 5918547a

verified
+1 -1
+1 -1
pkgs/by-name/nu/nuget-to-json/nuget-to-json.sh
··· 37 37 remote_sources+=("$index") 38 38 39 39 base_address=$( 40 - curl --compressed --netrc -fsSL "$index" | 40 + curl --compressed --netrc-optional -fsSL "$index" | 41 41 jq -r '.resources[] | select(."@type" == "PackageBaseAddress/3.0.0")."@id"' 42 42 ) 43 43 if [[ ! "$base_address" == */ ]]; then