mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Merge branch 'fix/ruby-shebang' of git://github.com/samueldr/nix
This commit is contained in:
commit
7459388448
4 changed files with 24 additions and 1 deletions
|
@ -212,7 +212,7 @@ void mainWrapped(int argc, char * * argv)
|
|||
// read the shebang to understand which packages to read from. Since
|
||||
// this is handled via nix-shell -p, we wrap our ruby script execution
|
||||
// in ruby -e 'load' which ignores the shebangs.
|
||||
envCommand = (format("exec %1% %2% -e 'load(\"%3%\") -- %4%") % execArgs % interpreter % script % joined.str()).str();
|
||||
envCommand = (format("exec %1% %2% -e 'load(\"%3%\")' -- %4%") % execArgs % interpreter % script % joined.str()).str();
|
||||
} else {
|
||||
envCommand = (format("exec %1% %2% %3% %4%") % execArgs % interpreter % script % joined.str()).str();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue