lib/assets/wrap_xcodebuild/xcbuild-safe.sh in gym-1.6.3 vs lib/assets/wrap_xcodebuild/xcbuild-safe.sh in gym-1.7.0
- old
+ new
@@ -39,9 +39,17 @@
unset BUNDLE_BIN_PATH
unset _ORIGINAL_GEM_PATH
unset BUNDLE_GEMFILE
fi
+if which rbenv > /dev/null; then
+ echo "rbenv detected, removing env variables"
+ unset RUBYLIB
+ unset RUBYOPT
+ unset GEM_HOME
+ unset GEM_PATH
+fi
+
# to help troubleshooting
# env | sort > /tmp/env.wrapper
# rvm info >> /tmp/env.wrapper
set -x # echoes commands
\ No newline at end of file