Fix database presence check
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Arsen Musayelyan 2023-01-11 18:31:57 -08:00
parent 3e0c110893
commit e772ecf2ab
1 changed files with 2 additions and 2 deletions

View File

@ -71,6 +71,6 @@ func init() {
DBPath = filepath.Join(CacheDir, "db")
_, err = os.ReadDir(DBPath)
DBPresent = err == nil
fi, err := os.Stat(DBPath)
DBPresent = err == nil && !fi.IsDir()
}