create cache dir if not exists

This commit is contained in:
streetturtle 2020-06-18 11:07:54 -04:00
parent a067a203b1
commit dc96ae4781
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ local github_widget = wibox.widget {
local function worker(args)
if not gfs.dir_readable(CACHE_DIR) then
gfs.make_directories(CACHE_DIR)
end
local args = args or {}
local icon = args.icon or ICONS_DIR .. 'github.png'