Skip to content

Commit

Permalink
[Backport release-24.11] dotnet/update.sh: fix error when output path…
Browse files Browse the repository at this point in the history
… contains spaces (#367500)
  • Loading branch information
corngood authored Dec 23, 2024
2 parents fb48298 + 01b7b29 commit a245353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/compilers/dotnet/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,15 @@ update() {
if [ "$patch_specified" == false ] && [ -f "$output" ]; then
local -a versions
IFS= readarray -d '' versions < <(
nix-instantiate --eval --json -E "with (import $output {
nix-instantiate --eval --json -E "{ output }: with (import output {
buildAspNetCore = { ... }: {};
buildNetSdk = { version, ... }: { inherit version; };
buildNetRuntime = { version, ... }: { inherit version; };
fetchNupkg = { ... }: {};
}); (x: builtins.deepSeq x x) [
runtime_${major_minor_underscore}.version
sdk_${major_minor_underscore}.version
]" | jq --raw-output0 .[])
]" --argstr output "$output" | jq --raw-output0 .[])
if [[ "${versions[0]}" == "$major_minor_patch" && "${versions[1]}" == "${sdk_versions[0]}" ]]; then
echo "Nothing to update."
return
Expand Down

0 comments on commit a245353

Please sign in to comment.