From 0ad4d2960bdae582e3a84a8150bf7526804cbae6 Mon Sep 17 00:00:00 2001 From: Davlatjon Shavkatov Date: Mon, 24 Jun 2024 23:17:39 +0500 Subject: [PATCH] fix(plugins/git): `ssh-add` confusion fix for cleanup --- plugins/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git.sh b/plugins/git.sh index c66a27a..927da10 100644 --- a/plugins/git.sh +++ b/plugins/git.sh @@ -93,7 +93,7 @@ cleanup() { git config --local --unset tag.forceSignAnnotated true git config --local --unset gpg.format ssh - ssh-add -L | grep -F "${SSH_PRIVATE_KEY-}" | ssh-add -d - + ssh-add -L | grep -F "${SSH_PUBLIC_KEY-}" | ssh-add -d - rm -rf "${SSH_PUBLIC_KEY_FILE}" unset SSH_PUBLIC_KEY_FILE