fix: harden urgent install and gateguard patch

This commit is contained in:
Affaan Mustafa
2026-04-14 19:44:08 -07:00
parent e5225db006
commit 8776c4f8f3
7 changed files with 206 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env node
const fs = require('fs');
const os = require('os');
const path = require('path');
const CATEGORIES = [
@@ -187,7 +188,7 @@ function detectTargetMode(rootDir) {
}
function findPluginInstall(rootDir) {
const homeDir = process.env.HOME || '';
const homeDir = process.env.HOME || process.env.USERPROFILE || os.homedir() || '';
const pluginDirs = [
'ecc',
'ecc@ecc',