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