Skip to content

Commit

Permalink
Issue 333: Don't allow invalid project names
Browse files Browse the repository at this point in the history
  • Loading branch information
John Herbener committed Dec 8, 2023
1 parent be5b137 commit 52f910a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mix/tasks/install.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ defmodule Mix.Tasks.Beacon.Install do

{options, _parsed} = OptionParser.parse!(argv, strict: @switches)

if Keyword.get(options, :site) |> String.starts_with?("beacon_") do
Mix.raise("site names starting with 'beacon_' are considered invalid, please choose another site name")
end

bindings = build_context_bindings(options)

config_file_path = config_file_path("config.exs")
Expand Down

0 comments on commit 52f910a

Please sign in to comment.