Permalink
Browse files

Unset GEM_HOME and GEM_PATH in before running the installer

  • Loading branch information...
1 parent 694c632 commit 167dba085384d2383c2877b4f3afbfac931abc83 @FooBarWidget FooBarWidget committed Jun 1, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 distro/installer
View
@@ -4,13 +4,16 @@
# Ruby interpreter if no suitable bundled Ruby interpreter exists.
dir=`dirname "$0"`
cd "$dir"
+
+unset GEM_HOME
+unset GEM_PATH
+unset RUBYOPT
+
platform="`uname`-`uname -m`"
if (ruby -e '') 2>/dev/null; then
exec ruby installer.rb "$@"
else
#echo "Using 'runtime/$platform/ruby'"
- RUBYOPT=""
- export RUBYOPT
if ("runtime/$platform/ruby" -e '') 2>/dev/null; then
exec "runtime/$platform/ruby" installer.rb "$@"
else

0 comments on commit 167dba0

Please sign in to comment.