Skip to content

Commit 690438f

Browse files
committed
Lint
1 parent 0f46b5f commit 690438f

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,29 @@ signatures for your project dependencies at build time and/or runtime,
2525
there are Maven plugins (e.g.
2626
[Verify PGP signatures](https://www.simplify4u.org/pgpverify-maven-plugin/)).
2727
Gradle even has this feature
28-
(out-of-the-box)[https://docs.gradle.org/current/userguide/dependency_verification.html].
28+
[out-of-the-box](https://docs.gradle.org/current/userguide/dependency_verification.html).
2929

3030
## Examples
3131

32-
Assuming that you want to see the signature of a jar with coordinates 'org.leplus:ristretto:1.0.0':
32+
Assuming that you want to see the signature of a jar with coordinates 'org.leplus:ristretto:2.0.0':
3333

3434
```bash
35-
docker run --rm leplusorg/pgp-verify-jar org.leplus:ristretto:1.0.0
35+
docker run --rm leplusorg/pgp-verify-jar org.leplus:ristretto:2.0.0
3636
```
3737

3838
You can put several sets in coordinates in arguments to verify
3939
multiple artifacts. You can also use the `KEYSERVER` environment
4040
variable to choose a different keyserver (default is keyserver.ubuntu.com):
4141

4242
```bash
43-
docker run --rm -e KEYSERVER=pgp.mit.edu leplusorg/pgp-verify-jar org.leplus:ristretto:1.0.0
43+
docker run --rm -e KEYSERVER=pgp.mit.edu leplusorg/pgp-verify-jar org.leplus:ristretto:2.0.0
4444
```
4545

4646
Alternatively you can use the `--keyserver` option to achieve the same
4747
result:
4848

4949
```bash
50-
docker run --rm leplusorg/pgp-verify-jar --keyserver=pgp.mit.edu org.leplus:ristretto:1.0.0
50+
docker run --rm leplusorg/pgp-verify-jar --keyserver=pgp.mit.edu org.leplus:ristretto:2.0.0
5151
```
5252

5353
Note that this will show you the jar's signature information but if
@@ -66,14 +66,14 @@ keys to be trusted from the server (private or public). `ONLINE_KEYS`
6666
should contain a coma-separated list of public key IDs:
6767

6868
```bash
69-
docker run --rm -e ONLINE_KEYS=6B1B9BE54C155617,85911F425EC61B51 leplusorg/pgp-verify-jar org.leplus:ristretto:1.0.0 junit:junit:4.13.1
69+
docker run --rm -e ONLINE_KEYS=6B1B9BE54C155617,85911F425EC61B51 leplusorg/pgp-verify-jar org.leplus:ristretto:2.0.0 junit:junit:4.13.1
7070
```
7171

7272
Alternatively you can use the `--online-keys` option to achieve the
7373
same result:
7474

7575
```bash
76-
docker run --rm leplusorg/pgp-verify-jar --online-keys=6B1B9BE54C155617,85911F425EC61B51 org.leplus:ristretto:1.0.0 junit:junit:4.13.1
76+
docker run --rm leplusorg/pgp-verify-jar --online-keys=6B1B9BE54C155617,85911F425EC61B51 org.leplus:ristretto:2.0.0 junit:junit:4.13.1
7777
```
7878

7979
If the keys downloaded from the server are themselves signed by
@@ -91,14 +91,14 @@ and setting the `VERIFICATION_MODE` environment variable to `offline`
9191
(default value is `online`):
9292

9393
```bash
94-
docker run --rm -e VERIFICATION_MODE=offline -v "/path/to/.gnupg:/root/.gnupg" leplusorg/pgp-verify-jar org.leplus:ristretto:1.0.0
94+
docker run --rm -e VERIFICATION_MODE=offline -v "/path/to/.gnupg:/root/.gnupg" leplusorg/pgp-verify-jar org.leplus:ristretto:2.0.0
9595
```
9696

9797
Alternatively you can use the `--verification-mode` option to achieve
9898
the same result:
9999

100100
```bash
101-
docker run --rm -v "/path/to/.gnupg:/root/.gnupg" leplusorg/pgp-verify-jar --verification-mode=offline org.leplus:ristretto:1.0.0
101+
docker run --rm -v "/path/to/.gnupg:/root/.gnupg" leplusorg/pgp-verify-jar --verification-mode=offline org.leplus:ristretto:2.0.0
102102
```
103103

104104
In `offline` mode, all the keys present in the keyring can be used to

pgp-verify-jar/pgp-verify-jar.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@ while :; do
8282
;;
8383
-r | --repo-base-url)
8484
if [ -z ${2+x} ]; then
85-
REPO_BASE_URL=${2}
86-
shift
85+
REPO_BASE_URL=${2}
86+
shift
8787
else
88-
die 'ERROR: "--repo-base-url" requires an option argument.'
88+
die 'ERROR: "--repo-base-url" requires an option argument.'
8989
fi
9090
;;
9191
--repo-base-url=?*)
9292
if [ "${1#*=}" ]; then
93-
REPO_BASE_URL=${1#*=}
94-
shift
93+
REPO_BASE_URL=${1#*=}
94+
shift
9595
else
96-
die 'ERROR: "--repo-base-url" requires an option argument.'
96+
die 'ERROR: "--repo-base-url" requires an option argument.'
9797
fi
9898
;;
9999
--repo-base-url=)
@@ -170,7 +170,7 @@ while :; do
170170
done
171171

172172
if [ -z ${REPO_BASE_URL+x} ]; then
173-
REPO_BASE_URL='https://repo1.maven.org/maven2'
173+
REPO_BASE_URL='https://repo1.maven.org/maven2'
174174
fi
175175

176176
if [ -z ${VERIFICATION_MODE+x} ]; then

0 commit comments

Comments
 (0)