Skip to content

Commit

Permalink
Recommend installation of elixir using system otp number.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoverlord committed Jul 15, 2019
1 parent 0a141ff commit ce774dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/mix/tasks/firmware.ex
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ defmodule Mix.Tasks.Firmware do
If you're using asdf to manage Elixir versions, run:
asdf install elixir #{System.version()}-otp-#{otpc.major}
asdf global elixir #{System.version()}-otp-#{otpc.major}
asdf install elixir #{System.version()}-otp-#{system_otp_release()}
asdf global elixir #{System.version()}-otp-#{system_otp_release()}
""")
end
else
Expand All @@ -239,4 +239,9 @@ defmodule Mix.Tasks.Firmware do
parse_version(vsn)
end
end

def system_otp_release do
:erlang.system_info(:otp_release)
|> to_string()
end
end

0 comments on commit ce774dd

Please sign in to comment.