Skip to content

Commit e2057f6

Browse files
committed
fix: fix plugin migration
1 parent 938a824 commit e2057f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lse/PluginMigration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ auto migratePlugin(const std::filesystem::path& path) -> void {
3939
const auto& pluginBaseName = path.stem();
4040
const auto& pluginDir = ll::plugin::getPluginsRoot() / pluginBaseName;
4141

42-
if (std::filesystem::exists(pluginDir)) {
42+
if (std::filesystem::exists(pluginDir / path.filename())) {
4343
throw std::runtime_error(
4444
fmt::format("failed to migrate legacy plugin at {}: {} already exists", path.string(), pluginDir.string())
4545
);

0 commit comments

Comments
 (0)