Skip to content

Commit

Permalink
git-verify-tag: make sure we remove temporary file.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 3, 2007
1 parent 0bc72ab commit 60c0f84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-verify-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60c0f84

Please sign in to comment.