Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
amacgregor committed Dec 26, 2024
1 parent b5fbc65 commit ecc1a32
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ defmodule BankingStandards.MixProject do

defp app_version do
# get git version
{description, 0} = System.cmd("git", ~w[describe]) # => returns something like: v1.0-231-g1c7ef8b
_git_version = String.trim(description)
|> String.split("-")
|> Enum.take(2)
|> Enum.join("-")
|> String.replace_leading("v", "")
# => returns something like: v1.0-231-g1c7ef8b
{description, 0} = System.cmd("git", ~w[describe])

_git_version =
String.trim(description)
|> String.split("-")
|> Enum.take(2)
|> Enum.join("-")
|> String.replace_leading("v", "")
end
end

0 comments on commit ecc1a32

Please sign in to comment.