Jump to content

Checking SHASUM fails because of temporary path


Dantes

Recommended Posts

Dear Community,

 

This might only be with the NanoPI-r6c images, but the SHASUM contains a temporary path which you don't have an thus fails.

Since we cannot change the SHASUM because then the ASC would fail, I have a temporary workaround:

 

sed 's,/.*/,,' armbian.img.sha | sha256sum -c

 

 

In a script you could either

1. CD into the directory of the image
2. Run the SHASUM there
3. Use $OLDPWD to return

 

or correct the SHASUM inline:

sha256sum /path/to/file | sed 's,/.*/,,' > armbian.img.sha

 

Dantes

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines