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

File conflict in Shell Bash #87

Open
1 task
Jetrom17 opened this issue Oct 2, 2024 · 0 comments
Open
1 task

File conflict in Shell Bash #87

Jetrom17 opened this issue Oct 2, 2024 · 0 comments
Labels
enhancement New feature or request linux

Comments

@Jetrom17
Copy link
Contributor

Jetrom17 commented Oct 2, 2024

# Key variables used throughout the script to make maintenance easier.
MedicatVersion="v21.12"
Medicat256Hash='a306331453897d2b20644ca9334bb0015b126b8647cecec8d9b2d300a0027ea4'
Medicat7zFile="MediCat.USB.$MedicatVersion.7z"
Medicat7zFull=''MediCat\ USB\ $MedicatVersion/MediCat.USB.$MedicatVersion.7z''

If the user chooses a file from Google Drive, for example, by choosing a file size of 4 GB, the extension expected by Shell Script is different from the downloaded file. The custom installation will not take place. So:

Checking SHA256 hash of MediCat.USB.v21.12.zip...
MediCat.USB.v21.12.zip SHA256 hash does not match.
File may be corrupted or compromised.
Hash is b7fa45110ad91987a63d52c03b4d9aa25afd72f4d662e457ca5b65e7c3b5674a
Exiting...

What to do?

  • You need to save all the hashes and file extensions. Otherwise the error will persist. This is because it expects a “.zip” extension and a different hash to the one found in Google Drive files.
@mon5termatt mon5termatt added linux enhancement New feature or request labels Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linux
Projects
None yet
Development

No branches or pull requests

2 participants