Fix hiding branch name logic
authorrinpatch <rinpatch@sdf.org>
Mon, 14 Oct 2019 19:13:18 +0000 (22:13 +0300)
committerrinpatch <rinpatch@sdf.org>
Mon, 14 Oct 2019 19:13:18 +0000 (22:13 +0300)
mix.exs

diff --git a/mix.exs b/mix.exs
index 9bd807d8cfa1f6957326032efe42d05cec3f37dc..56a11cac38c1111923d93fe25a85d715d8ad07e3 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -216,7 +216,7 @@ defmodule Pleroma.Mixfile do
            branch_name <- String.trim(branch_name),
            branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name,
            true <-
-             !Enum.all?(["master", "HEAD", "release/", "stable"], fn name ->
+             !Enum.any?(["master", "HEAD", "release/", "stable"], fn name ->
                String.starts_with?(name, branch_name)
              end) do
         branch_name =