mirror of https://github.com/sobolevn/git-secret
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.
29 lines
440 B
Bash
29 lines
440 B
Bash
#!/usr/bin/env bash
|
|
|
|
|
|
function clean {
|
|
OPTIND=1
|
|
|
|
# shellcheck disable=SC2034
|
|
while getopts 'vh' opt; do
|
|
case "$opt" in
|
|
v) _SECRETS_VERBOSE=1;;
|
|
|
|
h) _show_manual_for 'clean';;
|
|
|
|
*) _invalid_option_for 'clean';;
|
|
esac
|
|
done
|
|
|
|
shift $((OPTIND-1))
|
|
[ "$1" = '--' ] && shift
|
|
|
|
if [ $# -ne 0 ]; then
|
|
_abort "clean does not understand params: $*"
|
|
fi
|
|
|
|
_user_required
|
|
|
|
_find_and_remove_secrets_formatted
|
|
}
|