Skip to content

Commit cbcd7d1

Browse files
committed
-I supports shell globs
Fixes #1
1 parent d2bd00b commit cbcd7d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: all clean
22

3-
MPP = ../bin/mpp -Iassets/css -Iassets/js
3+
MPP = ../bin/mpp -Iassets/*
44

55
all: css/root.css js/root.js
66

src/resolver.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Resolver
2121
end
2222

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

2727
private def find(path)

0 commit comments

Comments
 (0)