Skip to content

Commit 0f162e3

Browse files
Apelsinka223bitwalker
authored andcommitted
fix io color formatting (#571)
1 parent d7d9fce commit 0f162e3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/mix/lib/releases/overlays.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ defmodule Mix.Releases.Overlays do
7777
with {:ok, path} <- template_str(path, vars),
7878
_ <-
7979
Shell.debug(
80-
"Applying #{IO.ANSI.reset()}mkdir#{IO.ANSI.cyan()} overlay\n" <>
81-
" dst: #{Path.relative_to_cwd(path)}"
80+
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}mkdir#{IO.ANSI.cyan()} overlay\n" <>
81+
" dst: #{Path.relative_to_cwd(path)}#{IO.ANSI.reset()}"
8282
),
8383
expanded <- Path.join(output_dir, path),
8484
:ok <- File.mkdir_p(expanded),
@@ -90,9 +90,9 @@ defmodule Mix.Releases.Overlays do
9090
{:ok, to} <- template_str(to, vars),
9191
_ <-
9292
Shell.debug(
93-
"Applying #{IO.ANSI.reset()}copy#{IO.ANSI.cyan()} overlay\n" <>
93+
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}copy#{IO.ANSI.cyan()} overlay\n" <>
9494
" src: #{Path.relative_to_cwd(from)}\n" <>
95-
" dst: #{Path.relative_to_cwd(to)}"
95+
" dst: #{Path.relative_to_cwd(to)}#{IO.ANSI.reset()}"
9696
),
9797
expanded_to <- Path.join(output_dir, to),
9898
:ok <- File.mkdir_p(Path.dirname(expanded_to)),
@@ -105,9 +105,9 @@ defmodule Mix.Releases.Overlays do
105105
{:ok, to} <- template_str(to, vars),
106106
_ <-
107107
Shell.debug(
108-
"Applying #{IO.ANSI.reset()}link#{IO.ANSI.cyan()} overlay\n" <>
108+
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}link#{IO.ANSI.cyan()} overlay\n" <>
109109
" src: #{Path.relative_to_cwd(from)}\n" <>
110-
" dst: #{Path.relative_to_cwd(to)}"
110+
" dst: #{Path.relative_to_cwd(to)}#{IO.ANSI.reset()}"
111111
),
112112
expanded_to <- Path.join(output_dir, to),
113113
_ <- File.rm(expanded_to),
@@ -124,8 +124,8 @@ defmodule Mix.Releases.Overlays do
124124
expanded_to <- Path.join(output_dir, to),
125125
_ <-
126126
Shell.debug(
127-
"Applying #{IO.ANSI.reset()}template#{IO.ANSI.cyan()} overlay\n" <>
128-
" src: #{Path.relative_to_cwd(tmpl_path)}\n" <> " dst: #{to}"
127+
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}template#{IO.ANSI.cyan()} overlay\n" <>
128+
" src: #{Path.relative_to_cwd(tmpl_path)}\n" <> " dst: #{to}#{IO.ANSI.reset()}"
129129
),
130130
:ok <- File.mkdir_p(Path.dirname(expanded_to)),
131131
:ok <- File.write(expanded_to, templated),

0 commit comments

Comments
 (0)