Skip to content

Commit

Permalink
update mkdir_p syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamx committed Jun 10, 2017
1 parent 99e6a81 commit 9358e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Mix.Tasks.Compile.Libpostal do
IO.warn("Windows is not supported.")
exit(1)
else
{_result, _error_code} = System.cmd("mkdir", ["-p", "priv"], stderr_to_stdout: true)
{:ok, _} = File.mkdir_p("priv")
{result, _error_code} = System.cmd("make", ["priv/parser.so"], stderr_to_stdout: true)
IO.binwrite result
{result, _error_code} = System.cmd("make", ["priv/expand.so"], stderr_to_stdout: true)
Expand Down

0 comments on commit 9358e9a

Please sign in to comment.