Add Dir func on darwin systems

This commit is contained in:
Andinus 2020-04-24 20:30:09 +05:30
parent f1ff0fec41
commit 1bc0e6faed
Signed by: andinus
GPG Key ID: B67D55D482A799FD
1 changed files with 7 additions and 0 deletions

View File

@ -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"
}