Last active
December 25, 2015 07:09
-
-
Save carlcrott/6937400 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ubuntu@ip-10-114-202-137:~$ sudo ./ghgvc.sh | |
./ghgvc.sh: 4: ./ghgvc.sh: rvmsudo: not found | |
./ghgvc.sh: 5: ./ghgvc.sh: rvm: not found | |
./ghgvc.sh: 6: ./ghgvc.sh: rvm: not found | |
./ghgvc.sh: 8: ./ghgvc.sh: source: not found | |
SSH back in to re-source RVM | |
ubuntu@ip-10-114-202-137:~$ which rvmsudo | |
/home/ubuntu/.rvm/bin/rvmsudo |
This file contains hidden or 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
if [ "$RVM_RELOADED" ]; then | |
echo "RVM was reloaded... proceeding" | |
else | |
rvmsudo rvm get head | |
rvm group add rvm $USER | |
rvm reload | |
echo "export rvm_trust_rvmrcs_flag=1" > ~/.rvmrc #auto-trust .rvmrc flags | |
source ~/.rvmrc | |
export RVM_RELOADED="1" | |
echo " SSH back in to re-source RVM " | |
exit | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment