社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

使用puppet使git命令行色彩丰富

Developer • 6 年前 • 921 次点击  

我正在尝试使用木偶使git命令行丰富多彩并出错。我错过了什么?

exec { 'make-git-color':
  command => '/usr/bin/git config --global color.ui auto',
  logoutput => 'on_failure',
  user      => 'vagrant',
  timeout   => 1200,
  require   => Package['git']
}

错误是:

 /Exec[make-git-color]/returns: fatal: $HOME not set
Error: '/usr/bin/git config --global color.ui auto' returned 128 instead of one of [0]

直接运行的命令可以正常工作。 /usr/bin/git config --global color.ui auto

但我需要通过木偶来完成。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/38799
文章 [ 3 ]  |  最新文章 6 年前