我正在尝试使用木偶使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
但我需要通过木偶来完成。