Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaked installer for new binscript.
- Loading branch information
1 parent
46779a1
commit b61b4ba
Showing
3 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi | ||
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi | ||
if [[ -z "$rvm_path" ]] ; then unset rvm_path ; fi | ||
|
||
if [[ -z "$rvm_path" ]] ; then | ||
if [[ "root" = "$(whoami)" ]] ; then | ||
rvm_path="${rvm_path:-/usr/local/rvm}" | ||
else | ||
rvm_path="${rvm_path:-$HOME/.rvm}" | ||
fi | ||
fi | ||
|
||
source $rvm_path/scripts/rvm | ||
|
||
__rvm "$*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters