We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GEM_PATH
1 parent cd27c58 commit 397bb7eCopy full SHA for 397bb7e
ruby-runner.c
@@ -84,9 +84,11 @@ main(int argc, char **argv)
84
insert_env_path(LIBPATHENV, builddir, dirsize, 1);
85
insert_env_path("RUBYLIB", rubylib, sizeof(rubylib), 0);
86
87
- insert_env_path_lit("GEM_PATH", ABS_SRCDIR"/.bundle", 1);
88
- insert_env_path_lit("GEM_PATH", BUILDDIR"/.bundle", 1);
89
- if (!getenv("GEM_HOME")) setenv("GEM_HOME", ABS_SRCDIR"/.bundle", 1);
+ if (!getenv("GEM_PATH")) {
+ insert_env_path_lit("GEM_PATH", ABS_SRCDIR"/.bundle", 1);
+ insert_env_path_lit("GEM_PATH", BUILDDIR"/.bundle", 1);
90
+ setenv("GEM_HOME", BUILDDIR"/.bundle", 0);
91
+ }
92
93
if (!(p = strrchr(arg0, '/'))) p = arg0; else p++;
94
if (strlen(p) < namesize - 1) {
0 commit comments