From 60c0f8462fefed22fc8fb9c4e529665ed8204536 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 3 Jan 2007 12:34:20 -0800 Subject: [PATCH] git-verify-tag: make sure we remove temporary file. Signed-off-by: Junio C Hamano --- git-verify-tag.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-verify-tag.sh b/git-verify-tag.sh index 36f171b30..8db7dd0b7 100755 --- a/git-verify-tag.sh +++ b/git-verify-tag.sh @@ -34,7 +34,10 @@ t) ;; esac +trap 'rm -f "$GIT_DIR/.tmp-vtag"' 0 + git-cat-file tag "$1" >"$GIT_DIR/.tmp-vtag" || exit 1 + cat "$GIT_DIR/.tmp-vtag" | sed '/-----BEGIN PGP/Q' | gpg --verify "$GIT_DIR/.tmp-vtag" - || exit 1 -- 2.30.2