OS_NAME=$(uname -s)
calculate_checksum() {
  if [ "${OS_NAME}" = "Darwin" ]; then
    # macOS
    shasum -a 256 "$1" | cut -d ' ' -f 1
  else
    # linux and others
    sha256sum "$1" | cut -d ' ' -f 1
  fi
}
