From 9ddace0b092fb7013c33f847273873f4f268ce43 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Sun, 22 Dec 2024 14:33:15 -0400 Subject: [PATCH] dotnet/update.sh: fix error when output path contains spaces Fixes: #367413 --- pkgs/development/compilers/dotnet/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/dotnet/update.sh b/pkgs/development/compilers/dotnet/update.sh index 66520f4658fd..ce28f952cb75 100755 --- a/pkgs/development/compilers/dotnet/update.sh +++ b/pkgs/development/compilers/dotnet/update.sh @@ -283,7 +283,7 @@ 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; }; @@ -291,7 +291,7 @@ update() { }); (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