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
#!/bin/bash | |
# | |
# I use this bash script to create an rvm gemset for a new rails app | |
# and I call this script from my rails_prep.rb ruby script | |
# | |
echo "create new gemset for new rails application ..." | |
#rvm --create 1.9.2@$1 # <--> this instruction does not work, but the following does | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" && rvm --create @$1 | |
# ------------------------------- | |
# Use the gemset we just created |