Skip to content

Commit

Permalink
Use exec
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Nov 6, 2024
1 parent 7283703 commit 14e8118
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pgp-verify-jar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ USER "${USER_NAME}"

WORKDIR "${HOME}"

ENTRYPOINT ["/opt/pgp-verify-jar.sh"]
CMD ["/opt/pgp-verify-jar.sh"]

ENTRYPOINT []
4 changes: 2 additions & 2 deletions pgp-verify-jar/pgp-verify-jar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ for artifact in "${@}"; do
\echo Downloading "${signatureUrl}"
\curl -f -s -S -o "${signatureFile}" "${signatureUrl}"
if [ "${VERIFICATION_MODE}" = 'online' ] && [ -z ${ONLINE_KEYS+x} ]; then
\gpg --auto-key-locate keyserver --keyserver "${KEYSERVER}" --keyserver-options auto-key-retrieve --verify "${signatureFile}" "${artifactFile}"
exec \gpg --auto-key-locate keyserver --keyserver "${KEYSERVER}" --keyserver-options auto-key-retrieve --verify "${signatureFile}" "${artifactFile}"
else
\gpg --verify "${signatureFile}" "${artifactFile}"
exec \gpg --verify "${signatureFile}" "${artifactFile}"
fi
done

0 comments on commit 14e8118

Please sign in to comment.