nuget-to-json: fix tools not being added to the lockfile

This commit is contained in:
GGG
2024-12-19 12:07:36 -03:00
parent 87616b4cef
commit 313f706105
@@ -62,7 +62,7 @@ done
fi
# packages in the nix store should have an empty metadata file
used_source="$(jq -r '.source // ""' "$version"/.nupkg.metadata)"
used_source="$(jq -r 'if has("source") then .source else "" end' "$version"/.nupkg.metadata)"
found=false
if [[ -z "$used_source" || -d "$used_source" ]]; then