mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-03 23:53:29 +08:00
fix: respect home overrides in hook utilities
This commit is contained in:
@@ -25,6 +25,10 @@ const WINDOWS_RESERVED_SESSION_IDS = new Set([
|
||||
* Get the user's home directory (cross-platform)
|
||||
*/
|
||||
function getHomeDir() {
|
||||
const explicitHome = process.env.HOME || process.env.USERPROFILE;
|
||||
if (explicitHome && explicitHome.trim().length > 0) {
|
||||
return path.resolve(explicitHome);
|
||||
}
|
||||
return os.homedir();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user