mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fix(NA): replace process.env.HOME with require('os').homedir(). (#27557)
This commit is contained in:
parent
9bdee51c1b
commit
10e52a0eae
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ import chalk from 'chalk';
|
|||
import { chmod, unlink, writeFile } from 'fs';
|
||||
import dedent from 'dedent';
|
||||
import normalizePath from 'normalize-path';
|
||||
import os from 'os';
|
||||
import { resolve } from 'path';
|
||||
import { promisify } from 'util';
|
||||
import SimpleGit from 'simple-git';
|
||||
|
@ -128,7 +129,7 @@ export async function registerPrecommitGitHook(log) {
|
|||
await getPrecommitGitHookScriptPath(REPO_ROOT),
|
||||
getKbnPrecommitGitHookScript(
|
||||
REPO_ROOT,
|
||||
normalizePath(process.env.HOME.replace(/'/g, '\'')),
|
||||
normalizePath(os.homedir()),
|
||||
process.platform
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue