From fddde8e87d44f04fa16846e16b657cef2e70ded7 Mon Sep 17 00:00:00 2001 From: Justin Schneck Date: Fri, 26 Apr 2019 12:58:01 -0400 Subject: [PATCH] Sanitize :: from path for sytsem shell 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 --- lib/mix/nerves/shell.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mix/nerves/shell.ex b/lib/mix/nerves/shell.ex index 05d04a97..e180d0ee 100644 --- a/lib/mix/nerves/shell.ex +++ b/lib/mix/nerves/shell.ex @@ -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