diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-01T11·48+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-01T11·48+0200 |
commit | a80f11bf7b78c22da0c35c1a6ff5dad14e914f28 (patch) | |
tree | 7c9efef8599ab3af010372dacc2740df54456823 | |
parent | 99c2c14f5016e9f9afb76b9ff3e9727ec2fd39a0 (diff) |
nix-shell: Support multiple "#! nix-shell" lines
-rwxr-xr-x | scripts/nix-build.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 5e988cc411f8..0a4431681cb1 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -56,7 +56,7 @@ if ($runEnv && defined $ARGV[0] && $ARGV[0] !~ /nix-shell/) { while (<SCRIPT>) { chomp; if (/^\#\!\s*nix-shell (.*)$/) { - @ARGV = split / /, $1; + push @ARGV, split(/ /, $1); } } } |