Commit 3fbff1e
committed
verify-checksums.sh: support alt. checksum format
Some checksum files do not simply have the checksum, but are also
appended by a path; e.g.:
$ cat ~/.m2/repository/ant/ant/1.6/ant-1.6.pom.sha1
04ebfa03f2baf244c7c7bc2a754cb03221ebfc29 /home/projects/maven/repository-staging/to-ibiblio/maven2/ant/ant/1.6/ant-1.6.pom
As an aside, this is almost certainly an error in the version of the
hashing plugin used to write that file -- the default output of sha1sum
is to append the full path to the file after the checksum, so presumably
that information was not removed as it seems to be with newer artifacts.
In any case, it's easy for this script to support both formats.1 parent 6742273 commit 3fbff1e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments