Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 18a4d7b

Browse files
committed
Whitelist HOME in env detection
1 parent d289f9c commit 18a4d7b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

client/src/util/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const RUBY_ENVIRONMENT_VARIABLES = [
1515
'GEM_HOME',
1616
'GEM_PATH',
1717
'GEM_ROOT',
18+
'HOME',
1819
];
1920

2021
function mkShim(shell: string, shimPath: string): boolean {

server/src/SettingsCache.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export type RubyEnvironment = {
77
GEM_HOME: string;
88
GEM_PATH: string;
99
GEM_ROOT: string;
10+
HOME: string;
1011
RUBOCOP_OPTS?: string;
1112
};
1213

0 commit comments

Comments
 (0)