Skip to content

Commit f3bfbcf

Browse files
authored
Ensure executable output without ANSI escape codes in bin_version/0 (#135)
Closes #134.
1 parent e8e2891 commit f3bfbcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tailwind.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ defmodule Tailwind do
169169
path = bin_path()
170170

171171
with true <- File.exists?(path),
172-
{out, 0} <- System.cmd(path, ["--help"]),
172+
{out, 0} <- System.cmd(path, ["--help"], env: %{"NO_COLOR" => "1"}),
173173
[vsn] <- Regex.run(~r/tailwindcss v([^\s]+)/, out, capture: :all_but_first) do
174174
{:ok, vsn}
175175
else

0 commit comments

Comments
 (0)