Skip to content

Commit

Permalink
-I supports shell globs
Browse files Browse the repository at this point in the history
Fixes foca#1
  • Loading branch information
mgarciaisaia committed Oct 27, 2016
1 parent d2bd00b commit 97b8c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: all clean

MPP = ../bin/mpp -Iassets/css -Iassets/js
MPP = ../bin/mpp -Iassets/*

all: css/root.css js/root.js

Expand Down
2 changes: 1 addition & 1 deletion src/resolver.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Resolver
end

def add(paths : Array(String))
@search_paths.concat(paths.map { |path| File.expand_path(path) })
paths.each { |path| Dir.glob(path) { |file| @search_paths << File.expand_path(file) } }
end

private def find(path)
Expand Down

0 comments on commit 97b8c13

Please sign in to comment.