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:
XeroOl 2024-06-08 12:18:52 -05:00
parent c92c834cf6
commit 1f44c99ef1
2 changed files with 5 additions and 3 deletions

View File

@ -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)/

View File

@ -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
(.. "'"