You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git-secret/utils/uninstall.sh

18 lines
298 B
Bash

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