Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/PackageBundler/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ function get_bundleignore(file, top)
dir = dirname(file)
patterns = Set{Any}()
try
while dir != top
while true
if isfile(joinpath(dir, ".juliabundleignore"))
union!(
patterns,
Glob.FilenameMatch.(strip.(readlines(joinpath(dir, ".juliabundleignore")))),
)
return patterns, dir
end
if dir == dirname(dir)
if dir == dirname(dir) || dir == top
break
end
dir = dirname(dir)
Expand All @@ -95,7 +95,6 @@ function get_bundleignore(file, top)
end
return patterns, top
end

"""
path_filterer(top)

Expand Down
Loading