Skip to content

Commit

Permalink
Make shellcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Mar 27, 2024
1 parent 7248d05 commit cdf48f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/redhat/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

set -eu pipefail

GPG_TTY="$(tty)"

WAYBACK_SIGNING_KEY="${WAYBACK_SIGNING_KEY:-}"
WAYBACK_SIGNING_PASSPHARSE="${WAYBACK_SIGNING_PASSPHARSE:-}"
VERSION="${VERSION:-1.0}"
Expand All @@ -25,6 +23,10 @@ rpmbuild -bb --define "_wayback_version ${VERSION}" "${WORKDIR}/SPECS/wayback.sp

[[ -z "${WAYBACK_SIGNING_KEY}" ]] && exit 0

GPG_TTY="$(tty)"

export GPG_TTY

gpg --import --yes --pinentry-mode loopback --passphrase "${WAYBACK_SIGNING_PASSPHARSE}" <<< "${WAYBACK_SIGNING_KEY}"

find "${WORKDIR}/RPMS/x86_64" -type f -name "*.rpm" -exec rpm --verbose --define "_gpg_sign_cmd_extra_args --pinentry-mode loopback --passphrase ${WAYBACK_SIGNING_PASSPHARSE}" --addsign {} \;
Expand Down

0 comments on commit cdf48f1

Please sign in to comment.