#!/bin/bash set -e if [ -z "$1" ]; then echo "usage: $0 " exit 1 fi shasum -a 256 "$1" | cut -d' ' -f1 > "$1".sha256