mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-19 17:21:10 +01:00
Move lockfile to assets dir.
This commit is contained in:
parent
f09fa7dc18
commit
1d683296f0
2
setup.go
2
setup.go
|
@ -126,7 +126,7 @@ func CreateDatabase() {
|
|||
}
|
||||
|
||||
func LockFile() {
|
||||
lock, err := os.Create(".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(".lock"); os.IsNotExist(err) {
|
||||
if _, err := os.Stat("./assets/.lock"); os.IsNotExist(err) {
|
||||
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