Py学习  »  Git

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

Developer • 6 年前 • 1156 次点击  

我正在尝试使用木偶使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 年前