Skip to content

Commit 5a6abb5

Browse files
committed
Fixed lockfile issue
1 parent d7629cc commit 5a6abb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ func main() {
8080
configPath = filepath.Join(homeDir, ".ipv6rs")
8181
}
8282

83+
err = os.MkdirAll(configPath, os.ModePerm)
84+
if err != nil {
85+
fmt.Printf("Error creating directory: %v\n", err)
86+
os.Exit(1)
87+
}
88+
8389
lock, err := createLockFile(configPath)
8490
if err != nil {
8591
fmt.Printf("Error: %v\n", err)

0 commit comments

Comments
 (0)