Skip to content

Commit

Permalink
expand artifact archive paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoverlord committed Jan 24, 2018
1 parent 8ad6bc6 commit 5c39ff4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/nerves/artifact.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ defmodule Nerves.Artifact do
case pkg.provider do
{provider, _opts} ->
{:ok, archive_path} = provider.archive(pkg, toolchain, opts)

if opts[:path] != archive_path do
File.cp!(archive_path, opts[:path])
archive_path = Path.expand(archive_path)
path = Path.expand(opts[:path])
if path != archive_path do
File.cp!(archive_path, path)
end
{:ok, archive_path}
_ ->
Expand Down

0 comments on commit 5c39ff4

Please sign in to comment.