ferron

Ferron is a fast and simple static website generator made with Lua.
Log | Files | Refs | Submodules | README | LICENSE

commit ec863aac55a6289d54ba14e62fcb5ce1c800d2c6
parent 8f34579f2af163bd0ba605d2077961cfcf0e41bc
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue,  3 Apr 2018 13:22:49 -0400

Fix indentation.

Diffstat:
Mcornelius | 26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/cornelius b/cornelius @@ -5,20 +5,20 @@ local config = require "config" if arg[1] == "install" and tonumber(_VERSION:match("%d+%.%d+")) >= config.dependencies.lua then - -- First, check if luarocks is present in the env. - if pcall(require, "luarocks.loader") then - -- Then install each dependency from the main configuration - for i, dependency in ipairs(config.dependencies.modules) do - os.execute ("luarocks install --tree lua_modules " .. dependency) - end - else - print("Ferron needs Luarocks for installing his dependencies.") - print("Please install it on your system https://luarocks.org/.") - end -elseif arg[1] == "build" then - os.execute("lua -l ferron.setpaths ferron.lua") + -- First, check if luarocks is present in the env. + if pcall(require, "luarocks.loader") then + -- Then install each dependency from the main configuration + for i, dependency in ipairs(config.dependencies.modules) do + os.execute ("luarocks install --tree lua_modules " .. dependency) + end + else + print("Ferron needs Luarocks for installing his dependencies.") + print("Please install it on your system https://luarocks.org/.") + end elseif arg[1] == "build" and arg[2] == "--dev" then - os.execute("lua -l ferron.setpaths ferron.lua --dev") + os.execute("lua -l ferron.setpaths ferron.lua --dev") +elseif arg[1] == "build" then + os.execute("lua -l ferron.setpaths ferron.lua") end -- install - install ferron and his dependencies