#!/bin/sh -eu

if [ -n "${2+x}" ]; then
    shasum -a 256 "${@}"
elif [ -n "${1+x}" ]; then
    shasum -a 256 "${@}" | head -c 64
else
    shasum -a 256 | head -c 64
fi
