fix: lock-mgr lock identifier if file does not exist

This commit is contained in:
h z
2026-04-13 16:00:40 +01:00
parent 1a202986e8
commit c6f0393c65

View File

@@ -340,6 +340,9 @@ func run() error {
if err != nil {
return fmt.Errorf("cannot resolve file path: %w", err)
}
if _, statErr := os.Stat(filePath); os.IsNotExist(statErr) {
filePath = fileArg
}
// Ensure lock file exists
if _, statErr := os.Stat(mgrPath); os.IsNotExist(statErr) {