nix-shell: Support multiple "#! nix-shell" lines
This commit is contained in:
parent
99c2c14f50
commit
a80f11bf7b
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue