Skip to content

Commit 24fb472

Browse files
committed
fix: fix a logic error while migrating plugins
1 parent 997c35e commit 24fb472

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
@@ -45,7 +45,7 @@ auto migratePlugin(const std::filesystem::path& path) -> void {
4545
);
4646
}
4747

48-
if (!std::filesystem::create_directory(pluginDir)) {
48+
if (!std::filesystem::create_directory(pluginDir) && !std::filesystem::exists(pluginDir)) {
4949
throw std::runtime_error(fmt::format("failed to create directory {}", pluginDir.string()));
5050
}
5151

0 commit comments

Comments
 (0)