ferron

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

commit eacf28996e28247143dc80b676ea037863a80719
parent 098d6ec3ad8c84f79c09774195355b97af822392
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Wed, 28 Mar 2018 09:03:41 -0400

Convert `_VERISON` output into number.

Diffstat:
Mcornelius | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cornelius b/cornelius @@ -1,11 +1,11 @@ #!/usr/bin/env lua --- Cornelius is the future CLI of Ferron SSG. +-- Cornelius is the CLI of Ferron SSG and it's a WIP. -- <https://en.wikipedia.org/wiki/Cornelius_the_First> local config = require "config" -if arg[1] == "install" and _VERSION:match("%d+%.%d+") >= config.dependencies.lua then +if arg[1] == "install" and tonumber(_VERSION:match("%d+%.%d+")) >= config.dependencies.lua then for i, dependency in ipairs(config.dependencies.modules) do os.execute ("luarocks install --tree lua_modules " .. dependency) end