diff options
author | streetturtle <streetturtle@gmail.com> | 2020-06-18 11:07:54 -0400 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-06-18 11:07:54 -0400 |
commit | dc96ae4781e1069f09911c99a9742338456e8aeb (patch) | |
tree | 1504e16b1fc6c07126c8329575610207a19525af | |
parent | a067a203b1a42686d1594fc466a6368c415566df (diff) |
create cache dir if not exists
-rw-r--r-- | github-activity-widget/github-activity-widget.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/github-activity-widget/github-activity-widget.lua b/github-activity-widget/github-activity-widget.lua index 45b9a87..b3e29bc 100644 --- a/github-activity-widget/github-activity-widget.lua +++ b/github-activity-widget/github-activity-widget.lua @@ -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' |