debian: handle removed-but-not-purged state in git-prompt completion script
The small wrapper at /etc/bash_completion.d/git-prompt is a conffile,
so it gets kept around even when the git package is removed as long as
it hasn't been purged, with unfortunate consequences when the user
logs in:
-bash: /usr/lib/git-core/git-sh-prompt: No such file or directory
-bash: /usr/lib/git-core/git-sh-prompt: No such file or directory
Fix it by first checking that the git-sh-prompt script is present,
as suggested in a different context by policy section 9.3.2.
Reported-by: Craig Small <csmall@debian.org>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2 files changed