aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-12-16 20:17:21 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-12-16 20:17:21 +0100
commitad6b738ed89069deec5eb2d0fb83668bdee08714 (patch)
tree0c9ca0b6aa3f831966dfa3c4306ecb3f22fc276b /src/nix-build/nix-build.cc
parent4947e0a91aeefd898e5b976733e70f1fbc1c0ae7 (diff)
parent410acd29c046ae7296d882ee4750441d4ff29955 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 99546876a..205165a4c 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -106,7 +106,7 @@ static void _main(int argc, char * * argv)
// Heuristic to see if we're invoked as a shebang script, namely,
// if we have at least one argument, it's the name of an
// executable file, and it starts with "#!".
- if (runEnv && argc > 1 && !std::regex_search(std::string(baseNameOf(argv[1])), std::regex("nix-shell"))) {
+ if (runEnv && argc > 1) {
script = argv[1];
try {
auto lines = tokenizeString<Strings>(readFile(script), "\n");