diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-01 13:48:45 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-01 13:48:45 +0200 |
commit | a80f11bf7b78c22da0c35c1a6ff5dad14e914f28 (patch) | |
tree | 7c9efef8599ab3af010372dacc2740df54456823 /scripts | |
parent | 99c2c14f5016e9f9afb76b9ff3e9727ec2fd39a0 (diff) |
nix-shell: Support multiple "#! nix-shell" lines
Diffstat (limited to 'scripts')
-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 5e988cc41..0a4431681 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); } } } |