dotnet/update.sh: fix error when output path contains spaces
Fixes: #367413
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user