Skip to content

Commit

Permalink
Temporarily reverting rvmsudo until we talk things out with thewoolle…
Browse files Browse the repository at this point in the history
…yman.
  • Loading branch information
wayneeseguin committed Jul 26, 2010
1 parent 2cbbb5b commit fa8b7dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions binscripts/rvmsudo
@@ -1,4 +1,10 @@
#!/usr/bin/env bash

rvm_env_prefix="PATH='$PATH'"
exec sudo -E /usr/bin/env "$rvm_env_prefix" "$@"
prefix="PATH='$PATH'"
if [[ ! -z "$BUNDLE_PATH" ]] ; then prefix="BUNDLE_PATH='$BUNDLE_PATH' $prefix" ; fi
if [[ ! -z "$GEM_HOME" ]] ; then prefix="GEM_HOME='$GEM_HOME' $prefix" ; fi
if [[ ! -z "$GEM_PATH" ]] ; then prefix="GEM_PATH='$GEM_PATH' $prefix" ; fi

eval "sudo" "/usr/bin/env $prefix $@"
# rvm_env_prefix="PATH='$PATH'"
# exec sudo -E /usr/bin/env "$rvm_env_prefix" "$@"

0 comments on commit fa8b7dd

Please sign in to comment.