fix: Prevent duplicate installations in install function

This commit is contained in:
alexsparkes
2026-02-08 19:47:31 +00:00
parent 04e5e26141
commit 031d980301

View File

@@ -38,6 +38,12 @@ export function install(type, input, sideload, collection) {
console.log(`[Install] isNewInstall: ${isNewInstall}`);
// Prevent duplicate installations - if pack already exists, skip
if (!isNewInstall) {
console.log(`[Install] Pack ${input.display_name || input.name} already installed, skipping`);
return;
}
let refreshEvent = null;
const handler = getHandler(type);