From 1bc0e6faed0b178745d26026233999f48a9b4fa6 Mon Sep 17 00:00:00 2001 From: Andinus Date: Fri, 24 Apr 2020 20:30:09 +0530 Subject: Add Dir func on darwin systems --- cache/getdir_darwin.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cache/getdir_darwin.go b/cache/getdir_darwin.go index 733e94e..d605d73 100644 --- a/cache/getdir_darwin.go +++ b/cache/getdir_darwin.go @@ -21,3 +21,10 @@ func GetDir() string { return cetusCacheDir } + +// Dir returns "/dev/null", this is required because unveil func in +// main.go calls it & it's useless on macOS anyways so we return +// "/dev/null". +func Dir() string { + return "/dev/null" +} -- cgit 1.4.1-2-gfad0