Skip to content

Commit

Permalink
join path for nerves.artifact output
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoverlord committed Jan 24, 2018
1 parent 5c39ff4 commit 72157fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/nerves/artifact.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ defmodule Nerves.Artifact do
{provider, _opts} ->
{:ok, archive_path} = provider.archive(pkg, toolchain, opts)
archive_path = Path.expand(archive_path)
path = Path.expand(opts[:path])
path =
opts[:path]
|> Path.expand()
|> Path.join("/")
if path != archive_path do
File.cp!(archive_path, path)
end
Expand Down

0 comments on commit 72157fe

Please sign in to comment.