Skip to content
Snippets Groups Projects
Commit c25b8199 authored by Jan-Tarek Butt's avatar Jan-Tarek Butt
Browse files

remove dofile because it loads files as lua

parent 4c113cf4
No related branches found
No related tags found
1 merge request!17Feature/hoods jsonminifyer
......@@ -32,7 +32,7 @@ endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/lib/ffnw/hoods
lua -e 'print(require("cjson").encode(assert(dofile("./files/lib/ffnw/hoods/hoods.json"))))' > $(1)/lib/ffnw/hoods/hoods.json
lua -e 'local cjson = require("cjson"); print(cjson.encode(cjson.decode(assert(io.open("./files/lib/ffnw/hoods/hoods.json"):read("*a")))))' > $(1)/lib/ffnw/hoods/hoods.json
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment