diff --git a/coursier.rb b/coursier.rb index 0914b28..c733f57 100644 --- a/coursier.rb +++ b/coursier.rb @@ -32,8 +32,10 @@ def install resource("jar-launcher").stage { bin.install "coursier" } unless build.without? "shell-completions" - chmod 0555, bin/"coursier" - generate_completions_from_executable(bin/"coursier", "completions", shells: [:bash, :zsh]) + with_env("COURSIER_MIRRORS": ENV["HOMEBREW_COURSIER_MIRRORS"]) do + chmod 0555, bin/"coursier" + generate_completions_from_executable(bin/"coursier", "completions", shells: [:bash, :zsh]) + end end end