is it possible to load rvm in shell script . can any one give an example of it. when i try a shell script . i am using ubuntu system
#!/bin/bash
rvm use 1.9.3
it gives me error
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
You can just include rvm in your script by doing:
source ~/.rvm/scripts/rvm
then rvm should be available to your script,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With