Skip to content

Commit

Permalink
Sanitize :: from path for sytsem shell
Browse files Browse the repository at this point in the history
Starting in asdf >= 7.0.0 the path would contain :: and cause buildroot ot throw the error:

You seem to have the current working directory in your
PATH environment variable. This doesn't work.
support/dependencies/dependencies.mk:21: recipe for target 'dependencies' failed
  • Loading branch information
mobileoverlord committed Apr 26, 2019
1 parent 67527cd commit fddde8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mix/nerves/shell.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ defmodule Mix.Nerves.Shell do
:binary,
:eof,
:stream,
:stderr_to_stdout
:stderr_to_stdout,
{:env, [{'PATH', sanitize_path()}]}
])

# Tell the script command about the terminal dimensions
Expand Down

0 comments on commit fddde8e

Please sign in to comment.