how to use rvm in shell scripting

前端 未结 3 959
温柔的废话
温柔的废话 2021-02-13 05:12

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
         


        
3条回答
  •  耶瑟儿~
    2021-02-13 05:53

    You can just include rvm in your script by doing:

    source ~/.rvm/scripts/rvm
    

    then rvm should be available to your script,

提交回复
热议问题