           Please download the file above manually to your current directory and run:
 
               mix local.rebar #{manager} ./#{Path.basename(local)}
-          """
+          """)
       end
     end
 

  end

  defp install_from_s3(manager, list_url, escript_url, opts) do
    hex_mirror = Mix.Hex.mirror
    list_url = hex_mirror <> list_url

    {elixir_version, rebar_version, sha512} =

defmodule Mix.Tasks.Local.Rebar do
  use Mix.Task

  @rebar2_list_url "/installs/rebar-1.x.csv"
  @rebar2_escript_url "/installs/[ELIXIR_VERSION]/rebar-[REBAR_VERSION]"
  @rebar3_list_url "/installs/rebar3-1.x.csv"
  @rebar3_escript_url "/installs/[ELIXIR_VERSION]/rebar3-[REBAR_VERSION]"

  @shortdoc "Installs Rebar locally"

  @moduledoc """
  Fetches a copy of `rebar` or `rebar3` from the given path or URL.
