Skip to content

Instantly share code, notes, and snippets.

@jacekbj
Created March 7, 2022 19:20
Show Gist options
  • Save jacekbj/7c206738138147ab1ac92af8938cea3b to your computer and use it in GitHub Desktop.
Save jacekbj/7c206738138147ab1ac92af8938cea3b to your computer and use it in GitHub Desktop.
Check md5 sum of a downloaded file
if [ $checksum == "$(md5sum virtualbox-6.1_6.1.32-149290~Ubuntu~eoan_amd64.deb | cut -f1 -d' ')" ]; then
echo "Equal"
else
echo "Not equal"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment