dotnet: Avoid double escaping of path

Paths with spaces were escaped within the quotes, resulting in situations
like this one:

```
$ nix-shell maintainers/scripts/update.nix --argstr package nexusmods-app
[omitted]
realpath: "'/home/username/my projects/nixpkgs/pkgs/by-name/ne/nexusmods-app/deps.nix'": No such file or directory
```

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
Victor Engmark
2024-12-19 22:07:55 +01:00
co-authored by Matt Sturgeon
parent 4676d057b9
commit 49dc2357b8
@@ -114,7 +114,8 @@ attrs
# this needs to be before TMPDIR is changed, so the output isn't deleted
# if it uses mktemp
depsFile=$(realpath "''${1:-${lib.escapeShellArg defaultDepsFile}}")
${lib.toShellVars { inherit defaultDepsFile; }}
depsFile=$(realpath "''${1:-$defaultDepsFile}")
export TMPDIR
TMPDIR=$(mktemp -d -t fetch-deps-${lib.escapeShellArg finalPackage.name}.XXXXXX)