mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-23 00:41:48 +03:00
24 lines
322 B
Bash
24 lines
322 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
npm install -g checksum
|
||
|
|
||
|
sum_file() {
|
||
|
if [[ -f "${1}" ]]; then
|
||
|
echo "Calculating checksum for ${1}"
|
||
|
checksum -a sha256 "${1}" > "${1}".sha256
|
||
|
checksum "${1}" > "${1}".sha1
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
cd assets
|
||
|
|
||
|
for FILE in *; do
|
||
|
if [[ -f "${FILE}" ]]; then
|
||
|
sum_file "${FILE}"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
cd ..
|