Skip to content

Commit

Permalink
Extract archive with charlist cwd option
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumm committed Aug 24, 2021
1 parent 0d48a0e commit 91e0b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dart_sass.ex
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ defmodule DartSass do
end

defp unpack_archive(".zip", zip, cwd) do
with {:ok, _} <- :zip.unzip(zip, cwd: cwd), do: :ok
with {:ok, _} <- :zip.unzip(zip, cwd: to_charlist(cwd)), do: :ok
end

defp unpack_archive(_, tar, cwd) do
:erl_tar.extract({:binary, tar}, [:compressed, cwd: cwd])
:erl_tar.extract({:binary, tar}, [:compressed, cwd: to_charlist(cwd)])
end

# Available targets: https://github.com/sass/dart-sass/releases
Expand Down

0 comments on commit 91e0b94

Please sign in to comment.