From: Junio C Hamano Date: Wed, 3 Jan 2007 20:34:20 +0000 (-0800) Subject: git-verify-tag: make sure we remove temporary file. X-Git-Tag: v1.5.0-rc1~98 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60c0f8462fefed22fc8fb9c4e529665ed8204536;p=git.git git-verify-tag: make sure we remove temporary file. Signed-off-by: Junio C Hamano --- 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