Browse Source

git-verify-tag: make sure we remove temporary file.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 18 years ago
parent
commit
60c0f8462f
  1. 3
      git-verify-tag.sh

3
git-verify-tag.sh

@ -34,7 +34,10 @@ t) @@ -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

Loading…
Cancel
Save