Skip to content

Commit bf10ebf

Browse files
committed
Fixed RUBYGEMS_GEMDEPS warning.
Unsets the RUBYGEMS_GEMDEPS environment variable inside the chruby_use() function and restores it when the function completes. Closes #298.
1 parent c260570 commit bf10ebf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

share/chruby/chruby.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ function chruby_use()
4242
export RUBYOPT="$2"
4343
export PATH="$RUBY_ROOT/bin:$PATH"
4444

45+
typeset unset RUBYGEMS_GEMDEPS
46+
4547
eval "$("$RUBY_ROOT/bin/ruby" - <<EOF
4648
puts "export RUBY_ENGINE=#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'};"
4749
puts "export RUBY_VERSION=#{RUBY_VERSION};"

0 commit comments

Comments
 (0)