Usar $HOME
This commit is contained in:
parent
e2b048151b
commit
10c3b635d0
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ local status = os.execute("mkdir -p ~/.cache/themer.lua/")
|
|||
if not (status == 0) then return status end
|
||||
|
||||
function save_config(name, template, params)
|
||||
local file, err = io.open("/home/diablo/.cache/themer.lua/"..name, "w+")
|
||||
local file, err = io.open(os.getenv("HOME").."/.cache/themer.lua/"..name, "w+")
|
||||
if not file then expect_nil(err) end
|
||||
file:write(templater(template, params))
|
||||
file:close()
|
||||
|
|
Loading…
Reference in a new issue