scripts/override_gem in rvm-1.0.5 vs scripts/override_gem in rvm-1.0.6
- old
+ new
@@ -1,10 +1,13 @@
#!/usr/bin/env bash
-if [[ -z "$rvm_leave_gem_alone" ]]; then
+if [[ ${rvm_leave_gem_alone:-0} -eq 0 ]]; then
gem() {
- command gem "$@"
- local gem_result="$?"
+ local result
+
+ command gem "$@" ; result="$?"
+
hash -r
- return $gem_result
+
+ return $result
}
-fi
\ No newline at end of file
+fi