# HG changeset patch # User IBBoard # Date 1650274620 -3600 # Node ID fa2747b27bb4f425645499fb8bd1760a1b7ec8fa # Parent 687aa581eef0327c4d9b5be6843d0b93950fcd8d Fix git-prompt in Ubuntu They package it different and have another path diff -r 687aa581eef0 -r fa2747b27bb4 modules/vcs/manifests/init.pp --- a/modules/vcs/manifests/init.pp Sat Apr 09 18:51:03 2022 +0100 +++ b/modules/vcs/manifests/init.pp Mon Apr 18 10:37:00 2022 +0100 @@ -17,9 +17,15 @@ python::pip { 'keyrings.alt': ensure => 'present', } + if $operatingsystem == 'Ubuntu' { + $gitprompt = '/etc/bash_completion.d/git-prompt' + } + else { + $gitprompt = '/usr/share/git-core/contrib/completion/git-prompt.sh' + } file { '/etc/bash_completion.d/git-prompt.sh': ensure => 'link', - target => '/usr/share/git-core/contrib/completion/git-prompt.sh', + target => $gitprompt, } }