deoren / notes

Various notes for topics I'm learning
2 stars 0 forks source link

Unzip and verify checksums #78

Open deoren opened 5 years ago

deoren commented 5 years ago
for file in *.zip; do unzip -j -n "$file"; done && for file in *.sha1sum; do sha1sum -c $file; done

Point:

  1. Unzip downloaded archives
  2. Verify SHA1 checksums of items wrapped in the zip files
  3. Skip checksum verification if there are zip decompression errors