fix sh function
I think it would probably be better to just make a shell script instead of this whole lua stuff, but I'll leave it for now.
This commit is contained in:
parent
c92c834cf6
commit
1f44c99ef1
6
Makefile
6
Makefile
@ -28,7 +28,6 @@ $(EXE): $(SRC)
|
||||
|
||||
clean:
|
||||
rm -f $(EXE)
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
test:
|
||||
TESTING=1 $(FENNEL) $(FENNELFLAGS) --add-fennel-path "test/faith/?.fnl" test/init.fnl
|
||||
@ -44,7 +43,10 @@ testall:
|
||||
$(MAKE) test LUA=luajit
|
||||
|
||||
docs:
|
||||
$(FENNEL) $(FENNELFLAGS) --add-fennel-path "tools/?.fnl" tools/gen-docs.fnl
|
||||
$(FENNEL) $(FENNELFLAGS) tools/gen-docs.fnl
|
||||
|
||||
install-deps:
|
||||
$(FENNEL) $(FENNELFLAGS) tools/vendor.fnl
|
||||
|
||||
install: $(EXE)
|
||||
mkdir -p $(DESTDIR)$(BINDIR) && cp $< $(DESTDIR)$(BINDIR)/
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
(= (type arg) :table)
|
||||
(. arg 1)
|
||||
;; simple string skips escaping
|
||||
(arg:find "^[a-zA-Z0-9/_-%.]+$")
|
||||
(arg:find "^[a-zA-Z0-9/_%.-]+$")
|
||||
arg
|
||||
;; full escaping
|
||||
(.. "'"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user