Only ask to install git hook if it doesn't exist (#2129)

pull/2133/head
Gulshan Singh 2 years ago committed by GitHub
parent b87e2a8cdb
commit 477e73ac91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -28,7 +28,7 @@ exit $exit_code
EOF
)
if [ -t 1 ]; then
if [ -t 1 ] && [ ! -f $hook_script_path ]; then
echo "Install a git hook to automatically lint files before pushing? (y/N)"
read yn
if [[ "$yn" == [Yy]* ]]; then
@ -227,4 +227,4 @@ if linux; then
source "${PWNDBG_VENV_PATH}/bin/activate"
~/.local/bin/poetry install --with dev
fi
fi

Loading…
Cancel
Save