Tweak first time setup check.

This commit is contained in:
Gabriel Simmer 2022-03-19 13:23:56 +00:00
parent 1d683296f0
commit 59a3df81d6
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ func CreateDatabase() {
}
func LockFile() {
lock, err := os.Create("./assets/.lock")
lock, err := os.Create("assets/.lock")
if err != nil {
fmt.Println("Error: %v", err)
}

View file

@ -20,7 +20,7 @@ func main() {
// Check if this is the first time Pogo has been run
// with a lockfile
if _, err := os.Stat("./assets/.lock"); os.IsNotExist(err) {
if _, err := os.Stat("assets/.lock"); err != nil {
fmt.Println("This looks like your first time running Pogo, give me a second to set myself up.")
Setup()
}