Skip to content

Commit

Permalink
Respect ATOM_RUBY_HOME env variable
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jan 17, 2025
1 parent 6a617e5 commit 3485783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrapper/nodejs/rbastgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function main(argvs) {
env.PATH = `${rubyBinDir}${delimiter}${env.PATH}`;
}
}
if (!detectRuby(RUBY_VERSION_NEEDED)) {
if (rubyCmd === "ruby" && !detectRuby(RUBY_VERSION_NEEDED)) {
console.warn(
`Ruby ${RUBY_VERSION_NEEDED} is not installed! Set the environment variable "ATOM_RUBY_HOME" to the Ruby ${RUBY_VERSION_NEEDED} install directory.`
);
Expand Down

0 comments on commit 3485783

Please sign in to comment.