summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-24 20:30:09 +0530
committerAndinus <andinus@nand.sh>2020-04-24 20:30:09 +0530
commit1bc0e6faed0b178745d26026233999f48a9b4fa6 (patch)
tree4c9c2d326e339552fa5f67e849d033ef1c78093a
parentf1ff0fec41c8b22d9114281ef3b001fcc3008561 (diff)
downloadcetus-1bc0e6faed0b178745d26026233999f48a9b4fa6.tar.gz
Add Dir func on darwin systems
-rw-r--r--cache/getdir_darwin.go7
1 files changed, 7 insertions, 0 deletions
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"
+}