Skip to content

Commit

Permalink
YETUS-1238. Add code to test gpg signing in initial-patches (#327)
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Dimiduk <[email protected]>
  • Loading branch information
aw-was-here authored Nov 13, 2023
1 parent 1492c5d commit 9929291
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions release/initial-patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,24 @@ update_version() {
git add "${BASEDIR}/.mvn/maven.config"
}

test_gpg_signing() {
declare binary
echo "**** testing gpg signing"
binary=$(git config gpg.program)
if ! echo "test" | "${binary}" -o /dev/null -as -; then
exit 1
fi

}

option_parse "$@"

check_basedir_repo

trap cleanup INT QUIT TRAP ABRT BUS SEGV TERM ERR

test_gpg_signing

set -x

git clean -xdf
Expand Down

0 comments on commit 9929291

Please sign in to comment.