mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-20 01:31:09 +01:00
Tweak first time setup check.
This commit is contained in:
parent
1d683296f0
commit
59a3df81d6
2
setup.go
2
setup.go
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue