Skip to content

Commit 61e3ad6

Browse files
authored
HADOOP-18334. Fix create-release to address removal of GPG_AGENT_INFO in branch-3.2. (#4554)
1 parent 8e0e736 commit 61e3ad6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev-support/bin/create-release

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ function startgpgagent
249249
eval $("${GPGAGENT}" --daemon \
250250
--options "${LOGDIR}/gpgagent.conf" \
251251
--log-file="${LOGDIR}/create-release-gpgagent.log")
252-
GPGAGENTPID=$(echo "${GPG_AGENT_INFO}" | cut -f 2 -d:)
252+
GPGAGENTPID=$(pgrep "${GPGAGENT}")
253+
GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent:$GPGAGENTPID:1"
254+
export GPG_AGENT_INFO
253255
fi
254256

255257
if [[ -n "${GPG_AGENT_INFO}" ]]; then

0 commit comments

Comments
 (0)