脚本中的Git克隆

时间:2012-02-28 00:22:03

标签: linux rvm

我正在编写一个bash脚本,我需要克隆一个git rep。我怎样才能这样做,以便在显示时自动将值设置为?

==============================================================================
= NOTICE                                                                     =
==============================================================================
= RVM has encountered a new or modified .rvmrc file in the current directory =
= This is a shell script and therefore may contain any shell commands.       =
=                                                                            =
= Examine the contents of this file carefully to be sure the contents are    =
= safe before trusting it! ( Choose v[iew] below to view the contents )      =
==============================================================================
Do you wish to trust this .rvmrc file? (/root/The-Three-Little-Pigs-Siri-Proxy/.rvmrc)
y[es], n[o], v[iew], c[ancel]> 

Ubuntu 10.10 32位

2 个答案:

答案 0 :(得分:3)

在您的主目录.rvmrc中创建一个文件,并在其中添加以下行:

rvm_trust_rvmrcs_flag=1

或信任该文件:

rvm rvmrc trust /root/The-Three-Little-Pigs-Siri-Proxy/

答案 1 :(得分:1)

您可以查看expect