diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-10-27 13:33:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 13:33:51 +0200 |
commit | b7e8a3bf4cbb2448db860f65ea13ef2c64b6883b (patch) | |
tree | 6e54823534826cf3761a526a3e50c5cbef68cf0e /src/nix | |
parent | 9323d139b0692e3ce140f89f8fe2a14e41610057 (diff) | |
parent | f8d01933838f719b2511a9a73a5fa710cdd59496 (diff) |
Merge pull request #7217 from NixOS/restore-nix-build-remote
Fix `nix __build-remote`
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index d78312944..f8e93e367 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -270,7 +270,7 @@ void mainWrapped(int argc, char * * argv) programPath = argv[0]; auto programName = std::string(baseNameOf(programPath)); - if (argc > 0 && std::string_view(argv[0]) == "__build-remote") { + if (argc > 1 && std::string_view(argv[1]) == "__build-remote") { programName = "build-remote"; argv++; argc--; } |