Skip to content

Commit

Permalink
lime-system: avoid lua circular require
Browse files Browse the repository at this point in the history
  • Loading branch information
G10h4ck committed Dec 15, 2014
1 parent 8ce084c commit 0fd5af8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/lime-system/files/usr/lib/lua/lime/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
utils = {}

local config = require("lime.config")
local system = require("lime.system")


function utils.split(string, sep)
local ret = {}
Expand Down Expand Up @@ -54,6 +54,7 @@ function utils.applyMacTemplate10(template, mac)
end

function utils.applyHostnameTemplate(template)
local system = require("lime.system")
return template:gsub("%%H", system.get_hostname())
end

Expand Down

0 comments on commit 0fd5af8

Please sign in to comment.