Skip to content

Commit ca8e13a

Browse files
committed
fix registration of .exe files
Signed-off-by: Ansuman Sahoo <[email protected]>
1 parent 77f0fe1 commit ca8e13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/registry/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func registerDriverFile(path string) {
177177
name = strings.TrimSuffix(strings.TrimPrefix(base, "lima-driver-"), ".exe")
178178
}
179179
} else {
180-
if strings.HasPrefix(base, "lima-driver-") {
180+
if strings.HasPrefix(base, "lima-driver-") && !strings.HasSuffix(base, ".exe") {
181181
name = strings.TrimPrefix(base, "lima-driver-")
182182
}
183183
}

0 commit comments

Comments
 (0)