gpt4 book ai didi

linux - 脚本中的 Git 克隆

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:41:18 25 4
gpt4 key购买 nike

我正在编写一个 bash 脚本,我需要在其中克隆一个 git 代表。我怎样才能让它在出现时自动将值 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 位

最佳答案

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

rvm_trust_rvmrcs_flag=1

或者信任文件:

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

关于linux - 脚本中的 Git 克隆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9474542/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com