fix: Make sure updater properly exists after launching update process

This commit is contained in:
WerWolv
2025-12-29 13:35:44 +01:00
parent 53153ca3e0
commit e28f3b75a4
3 changed files with 43 additions and 1 deletions

View File

@@ -151,7 +151,10 @@ auto updateCommand(std::string command) {
const auto formattedCommand = fmt::format(fmt::runtime(command), updatePath.string());
hex::log::info("Starting update process with command: '{}'", formattedCommand);
return hex::executeCommand(formattedCommand) == 0;
hex::executeCommandDetach(formattedCommand);
return 0;
};
}