X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/c73b41c6368deb9591b262d65515d4ff22f26fef..804a3b4084659a30586c6cdadf7b2b3de5019fd6:/helpers.lua diff --git a/helpers.lua b/helpers.lua index af6443f..f2bd5e4 100644 --- a/helpers.lua +++ b/helpers.lua @@ -35,12 +35,11 @@ end -- see if the file exists function helpers.file_exists(file) - local f = io.open(file, "rb") + local f = io.open(file) if f then f:close() end return f ~= nil end - -- get all lines from a file, returns an empty -- list/table if the file does not exist function helpers.lines_from(file)