Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify shasum check command #399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

modify shasum check command #399

wants to merge 1 commit into from

Conversation

lgrn
Copy link

@lgrn lgrn commented Jul 26, 2024

by default, sha256sum and sha512sum will look for any file mentioned in the CHECKSUM file, which is all of them:

$ wc -l < CHECKSUM.SHA512-FreeBSD-14.1-RELEASE-amd64
10

with the current command, this will lead to 9 failures and 1 OK. the fact that you specify the filename to be checked does not seem to mean that is the only file that is checked.

for this reason, I suggest that the filename to be checked is removed, and replaced with the flag --ignore-missing which is present in both commands on both BSD and Linux.

this flag means that all files mentioned will be checked, just like before, but output will only be returned for successful checks. example:

$ sha512sum -c CHECKSUM.SHA512-FreeBSD-14.1-RELEASE-amd64 --ignore-missing
FreeBSD-14.1-RELEASE-amd64-memstick.img: OK

this assumes that the img file is in the same directory, but this was already assumed in the previous version.

by default, sha256sum and sha512sum will look for any file mentioned in
the CHECKSUM file, which is all of them:

$ wc -l < CHECKSUM.SHA512-FreeBSD-14.1-RELEASE-amd64
10

with the current command, this will lead to 9 failures and 1 OK. the
fact that you specify the filename to be checked does not seem to mean
that is the *only* file that is checked.

for this reason, I suggest that the filename to be checked is removed,
and replaced with the flag --ignore-missing which is present in both
commands on both BSD and Linux.

this flag means that all files mentioned will be checked, just like
before, but output will only be returned for successful checks. example:

$ sha512sum -c CHECKSUM.SHA512-FreeBSD-14.1-RELEASE-amd64 --ignore-missing
FreeBSD-14.1-RELEASE-amd64-memstick.img: OK

this assumes that the img file is in the same directory, but this was
already assumed in the previous version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant