dotnet/update.sh: fix error when output path contains spaces

Fixes: #367413
This commit is contained in:
David McFarland
2024-12-22 19:49:07 -04:00
parent c41a19e6f3
commit 9ddace0b09
+2 -2
View File
@@ -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