Skip to content

Commit

Permalink
fix io color formatting (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apelsinka223 authored and bitwalker committed Oct 17, 2018
1 parent d7d9fce commit 0f162e3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/mix/lib/releases/overlays.ex
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ defmodule Mix.Releases.Overlays do
with {:ok, path} <- template_str(path, vars),
_ <-
Shell.debug(
"Applying #{IO.ANSI.reset()}mkdir#{IO.ANSI.cyan()} overlay\n" <>
" dst: #{Path.relative_to_cwd(path)}"
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}mkdir#{IO.ANSI.cyan()} overlay\n" <>
" dst: #{Path.relative_to_cwd(path)}#{IO.ANSI.reset()}"
),
expanded <- Path.join(output_dir, path),
:ok <- File.mkdir_p(expanded),
Expand All @@ -90,9 +90,9 @@ defmodule Mix.Releases.Overlays do
{:ok, to} <- template_str(to, vars),
_ <-
Shell.debug(
"Applying #{IO.ANSI.reset()}copy#{IO.ANSI.cyan()} overlay\n" <>
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}copy#{IO.ANSI.cyan()} overlay\n" <>
" src: #{Path.relative_to_cwd(from)}\n" <>
" dst: #{Path.relative_to_cwd(to)}"
" dst: #{Path.relative_to_cwd(to)}#{IO.ANSI.reset()}"
),
expanded_to <- Path.join(output_dir, to),
:ok <- File.mkdir_p(Path.dirname(expanded_to)),
Expand All @@ -105,9 +105,9 @@ defmodule Mix.Releases.Overlays do
{:ok, to} <- template_str(to, vars),
_ <-
Shell.debug(
"Applying #{IO.ANSI.reset()}link#{IO.ANSI.cyan()} overlay\n" <>
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}link#{IO.ANSI.cyan()} overlay\n" <>
" src: #{Path.relative_to_cwd(from)}\n" <>
" dst: #{Path.relative_to_cwd(to)}"
" dst: #{Path.relative_to_cwd(to)}#{IO.ANSI.reset()}"
),
expanded_to <- Path.join(output_dir, to),
_ <- File.rm(expanded_to),
Expand All @@ -124,8 +124,8 @@ defmodule Mix.Releases.Overlays do
expanded_to <- Path.join(output_dir, to),
_ <-
Shell.debug(
"Applying #{IO.ANSI.reset()}template#{IO.ANSI.cyan()} overlay\n" <>
" src: #{Path.relative_to_cwd(tmpl_path)}\n" <> " dst: #{to}"
"#{IO.ANSI.cyan()}Applying #{IO.ANSI.reset()}template#{IO.ANSI.cyan()} overlay\n" <>
" src: #{Path.relative_to_cwd(tmpl_path)}\n" <> " dst: #{to}#{IO.ANSI.reset()}"
),
:ok <- File.mkdir_p(Path.dirname(expanded_to)),
:ok <- File.write(expanded_to, templated),
Expand Down

0 comments on commit 0f162e3

Please sign in to comment.