This ensures the file has not been tampered with.

echo "$EXPECTED_SHA $OUTPUT" | sha256sum --check if [ $? -ne 0 ]; then echo "Checksum mismatch! Aborting deployment." exit 1 fi

sha256sum vmxbundle_171r18tgz.tgz # Compare output with official hash