Skip to content

Commit

Permalink
Exit without terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Mar 27, 2024
1 parent cdf48f1 commit 320e3db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/redhat/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ mkdir -p "${WORKDIR}/{BUILD,RPMS,SOURCES,SPECS,SRPMS}"

rpmbuild -bb --define "_wayback_version ${VERSION}" "${WORKDIR}/SPECS/wayback.spec"

[[ -z "${WAYBACK_SIGNING_KEY}" ]] && exit 0
if [ -z "${WAYBACK_SIGNING_KEY}" ]; then
echo 'Build RPM package without signing.'
exit 0 || true

Check warning on line 26 in build/redhat/entrypoint.sh

View workflow job for this annotation

GitHub Actions / ShellCheck / shellcheck

[shellcheck] reported by reviewdog 🐶 Command appears to be unreachable. Check usage (or ignore if invoked indirectly). Raw Output: ./build/redhat/entrypoint.sh:26:15: info: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). (ShellCheck.SC2317)
fi

GPG_TTY="$(tty)"

Expand Down

0 comments on commit 320e3db

Please sign in to comment.