Fix nix __build-remote
Because of a wrong index, `nix __build-remote` wasn't working. Fix the index to restore the command (and the build hook).
This commit is contained in:
parent
899878f77a
commit
9bff7e8ee2
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ void mainWrapped(int argc, char * * argv)
|
||||||
programPath = argv[0];
|
programPath = argv[0];
|
||||||
auto programName = std::string(baseNameOf(programPath));
|
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";
|
programName = "build-remote";
|
||||||
argv++; argc--;
|
argv++; argc--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue