Skip to content

Commit

Permalink
Fixing shift by one bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Mar 19, 2024
1 parent 6f9bb50 commit f7cb8eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pgp-verify-jar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN apk --update --no-cache add bash curl gnupg \

COPY pgp-verify-jar.sh /opt/pgp-verify-jar.sh

ENTRYPOINT ["/bin/bash", "/opt/pgp-verify-jar.sh"]
ENTRYPOINT ["/opt/pgp-verify-jar.sh"]
7 changes: 2 additions & 5 deletions pgp-verify-jar/pgp-verify-jar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ while :; do
*)
break
esac

shift
done

if [ -z ${VERIFICATION_MODE+x} ]; then
Expand Down Expand Up @@ -174,9 +172,8 @@ else
\unset KEYSERVER
\unset ONLINE_KEYS
fi

for artifact in "$@"
do

for artifact in "${@}" ; do
\echo Checking "${artifact}"
if [[ "${artifact}" == *\@* ]]; then
artifactPrefix="${artifact%\@*}"
Expand Down

0 comments on commit f7cb8eb

Please sign in to comment.