summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-06-18 11:07:54 -0400
committerstreetturtle <streetturtle@gmail.com>2020-06-18 11:07:54 -0400
commitdc96ae4781e1069f09911c99a9742338456e8aeb (patch)
tree1504e16b1fc6c07126c8329575610207a19525af
parenta067a203b1a42686d1594fc466a6368c415566df (diff)
create cache dir if not exists
-rw-r--r--github-activity-widget/github-activity-widget.lua4
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'