Skip to content

Instantly share code, notes, and snippets.

@niner
Created June 22, 2017 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niner/cb9189a88b41d19e1bb0bbb306f7ae15 to your computer and use it in GitHub Desktop.
Save niner/cb9189a88b41d19e1bb0bbb306f7ae15 to your computer and use it in GitHub Desktop.
diff --git a/src/core/CompUnit/Repository/Installation.pm b/src/core/CompUnit/Repository/Installation.pm
index 9c23f1ca1..204b67093 100644
--- a/src/core/CompUnit/Repository/Installation.pm
+++ b/src/core/CompUnit/Repository/Installation.pm
@@ -83,8 +83,8 @@ sub MAIN(:$name is copy, :$auth, :$ver, *@, *%) {
exit 1;
}
- %*ENV<PERL6_PROGRAM_NAME> = $*PROGRAM-NAME;
- exit run($*EXECUTABLE, @binaries.sort(*<ver>).tail.hash.<files><bin/#name#>, @*ARGS).exitcode
+ my $bin = @binaries.sort(*<ver>).tail.hash.<files><bin/#name#>;
+ require "$bin";
}';
method !sources-dir() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment