mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 00:56:15 +02:00
nix-shell: Support multiple "#! nix-shell" lines
This commit is contained in:
parent
99c2c14f50
commit
a80f11bf7b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ if ($runEnv && defined $ARGV[0] && $ARGV[0] !~ /nix-shell/) {
|
||||||
while (<SCRIPT>) {
|
while (<SCRIPT>) {
|
||||||
chomp;
|
chomp;
|
||||||
if (/^\#\!\s*nix-shell (.*)$/) {
|
if (/^\#\!\s*nix-shell (.*)$/) {
|
||||||
@ARGV = split / /, $1;
|
push @ARGV, split(/ /, $1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue