10 lines
169 B
Bash
Executable File
10 lines
169 B
Bash
Executable File
#!/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
|