mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
20 lines
312 B
Bash
Executable File
20 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
export dir="$1"
|
|
(
|
|
head -n -2
|
|
test -z "$dir" || cd $dir
|
|
sha256sum *xca* | while read md file; do
|
|
echo ' "'$file'":"'$md'",'
|
|
done
|
|
cat <<-EOF
|
|
|
|
"last":""
|
|
}
|
|
EOF
|
|
) < misc/binary-hashes.json > misc/binary-hashes.json.tmp &&
|
|
|
|
mv misc/binary-hashes.json.tmp misc/binary-hashes.json
|