diff --git a/plugins.go b/plugins.go index c7b8ce7..feecfd1 100644 --- a/plugins.go +++ b/plugins.go @@ -29,7 +29,7 @@ func pluginExists(name string) (exists bool) { func makePluginName(name string) (decorated string) { var template string - if execName, err := os.Executable(); err != nil || !strings.HasSuffix(execName, ".debug") { + if execName, err := os.Executable(); err != nil || strings.Index(execName, "debug") < 0 { template = "expr-%s-plugin.so" } else { template = "expr-%s-plugin.so.debug"