git-secret/utils/uninstall.sh

18 lines
289 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
PREFIX="$1"
if [ -z "$PREFIX" ]; then
echo "usage: $0 <prefix>" >&2
exit 1
fi
# Binary:
rm -f "$PREFIX"/bin/git-secret
# Manuals:
2021-05-03 12:43:04 +00:00
find "$PREFIX"/share/man/man1 -type f -name 'git-secret-*.1' -exec rm -f {} \;
rm -f "$PREFIX"/share/man/man7/git-secret.7