Skip to content

Commit 3d2438c

Browse files
author
José Valim
committed
Ensure esriptize does not try to read directories
1 parent a08710b commit 3d2438c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/mix/lib/mix/tasks/escriptize.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ defmodule Mix.Tasks.Escriptize do
133133

134134
defp get_files(app) do
135135
Path.wildcard("#{app}/ebin/*.{app,beam}") ++
136-
Path.wildcard("#{app}/priv/**/*")
136+
(Path.wildcard("#{app}/priv/**/*") |> Enum.filter(File.regular?(&1)))
137137
end
138138

139139
defp get_tuples(app) do
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World

0 commit comments

Comments
 (0)