mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-20 01:31:09 +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() {
|
func LockFile() {
|
||||||
lock, err := os.Create(".lock")
|
lock, err := os.Create("./assets/.lock")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error: %v", err)
|
fmt.Println("Error: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ func main() {
|
||||||
|
|
||||||
// Check if this is the first time Pogo has been run
|
// Check if this is the first time Pogo has been run
|
||||||
// with a lockfile
|
// 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.")
|
fmt.Println("This looks like your first time running Pogo, give me a second to set myself up.")
|
||||||
Setup()
|
Setup()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue