Close DB after check

This commit is contained in:
Jan-Lukas Else 2021-04-03 15:48:31 +02:00
parent 06a1a0cdde
commit 5a5069a44d
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ func main() {
// Link check tool after init of markdown
if len(os.Args) >= 2 && os.Args[1] == "check" {
checkAllExternalLinks()
if err = closeDb(); err != nil {
log.Fatalln("Failed to close DB:", err.Error())
}
return
}