File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ defmodule Nerves.Bootstrap.Aliases do
22
22
update_in ( config , [ :aliases ] , & add_host_aliases ( & 1 ) )
23
23
end
24
24
25
- def target_config ( config , nil ) , do: config
26
- def target_config ( config , "host" ) , do: config
25
+ def target_config ( config , nil ) , do: host_only ( config )
26
+ def target_config ( config , "host" ) , do: host_only ( config )
27
27
28
28
def target_config ( config , target ) do
29
29
Mix . shell ( ) . info ( [
@@ -93,4 +93,17 @@ defmodule Nerves.Bootstrap.Aliases do
93
93
defp drop ( aliases , a ) do
94
94
Enum . reject ( aliases , & ( & 1 === a ) )
95
95
end
96
+
97
+ defp host_only ( config ) do
98
+ Mix . shell ( ) . info ( [
99
+ IO.ANSI . yellow ( ) ,
100
+ """
101
+ Nerves Environment not loaded.
102
+ MIX_TARGET is unset
103
+ """ ,
104
+ IO.ANSI . reset ( )
105
+ ] )
106
+
107
+ config
108
+ end
96
109
end
You can’t perform that action at this time.
0 commit comments