2012-02-28 8 views
1

私はgit担当者をクローンする必要のあるbashスクリプトを書いています。これが表示されたら自動的に値yesを入れるようにするにはどうすればいいですか?スクリプト内のクローンクローン

============================================================================== 
= 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ビット

+0

RVM何が、なぜそれがあなたのgitのを妨害していますクローン? –

+0

@GregHewgill - Rubyバージョンマネージャーです。おそらくスクリプトクローンとその中のCDです。これは、フォルダに.rvmrcファイルがある場合、rvmフックを引き起こします。とにかく、gitタグを削除し、rvmを追加しました。 – manojlds

+0

修正して、スクリプトクローンを作成してください。 – awmusic12635

答えて

3

、自分のホームディレクトリにファイルを作成し.rvmrcし、それに次の行を追加します。

rvm_trust_rvmrcs_flag=1 

またはファイルを信頼して:

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

/homeか、それをクローン化しているディレクトリにできると思っていましたか? – awmusic12635

+1

彼は '/ home/username'、または'〜 'を意味すると思います –

1

あなたはexpectに見えるかもしれません。

関連する問題