diff options
author | Shea Levy <shea@shealevy.com> | 2018-04-09T14·54-0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-04-09T14·54-0400 |
commit | 7459388448278914662f796353279e84a49a5c99 (patch) | |
tree | 02157687950eefe6caa19922e9cb54b582563aef /src | |
parent | fd98fca7bbcea393957e63f25e36d82ada43e255 (diff) | |
parent | a4c9b2595e6e22250e4e744a35fff3c7f9cd85d9 (diff) |
Merge branch 'fix/ruby-shebang' of git://github.com/samueldr/nix
Diffstat (limited to 'src')
-rwxr-xr-x | src/nix-build/nix-build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index cf628519c6e7..a63b3e07ae77 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -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(); } |