Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unset GEM_HOME and GEM_PATH in before running the installer

  • Loading branch information...
commit 167dba085384d2383c2877b4f3afbfac931abc83 1 parent 694c632
Hongli Lai FooBarWidget authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 distro/installer
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.