Skip to content

Commit

Permalink
Fixes generated rel/config.exs when release name is not provided. (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseshieh authored and bitwalker committed May 19, 2019
1 parent 5859710 commit 21101b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/distillery/tasks/init.ex
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ defmodule Mix.Tasks.Distillery.Init do

releases = [
[
release_name: Keyword.get(opts, :name, app),
# If opts contains the key :name, but its value is nil, we still want to default to app
release_name: Keyword.get(opts, :name, app) || app,
is_umbrella: false,
release_applications: [{app, :permanent}]
]
Expand Down

0 comments on commit 21101b3

Please sign in to comment.