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

fix(install-witness.sh): ensure compatibility with macOS for checksum verification #459

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

fkautz
Copy link
Contributor

@fkautz fkautz commented May 30, 2024

The install-witness.sh script did not work on macOS due to the absence of the sha256sum command.
This patch adds a check to use shasum -a 256 if sha256sum is not available, ensuring the script
runs correctly on macOS.

  • Added a conditional check to use shasum -a 256 when sha256sum is not found
  • Updated the FILE_CHECKSUM assignment to support both commands

Closes #458

Signed-off-by: Frederick F. Kautz IV [email protected]

Copy link

netlify bot commented May 30, 2024

Deploy Preview for witness-project ready!

Name Link
🔨 Latest commit 70b9482
🔍 Latest deploy log https://app.netlify.com/sites/witness-project/deploys/665aa8263650b1000832a86e
😎 Deploy Preview https://deploy-preview-459--witness-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fkautz
Copy link
Contributor Author

fkautz commented May 30, 2024

Tested on both macOS and Ubuntu.

… verification

The install-witness.sh script did not work on macOS due to the absence of the sha256sum command.
This patch adds a check to use shasum -a 256 if sha256sum is not available, ensuring the script
runs correctly on macOS.

- Added a conditional check to use shasum -a 256 when sha256sum is not found
- Updated the FILE_CHECKSUM assignment to support both commands

Closes in-toto#458

Signed-off-by: Frederick F. Kautz IV <[email protected]>
@jkjell jkjell merged commit b495cf7 into in-toto:main Jun 1, 2024
14 checks passed
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.

[Bug]: Installer does not work on macOS
2 participants