mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Add nonces
This commit is contained in:
parent
7320bcec3b
commit
a1322fe9d5
0
packages/bcp/nonces/1580975947
Normal file
0
packages/bcp/nonces/1580975947
Normal file
0
packages/faucet/nonces/1580975947
Normal file
0
packages/faucet/nonces/1580975947
Normal file
0
packages/sdk/nonces/1580975947
Normal file
0
packages/sdk/nonces/1580975947
Normal file
17
scripts/add_nonces.sh
Executable file
17
scripts/add_nonces.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -o errexit -o nounset -o pipefail
|
||||
command -v shellcheck > /dev/null && shellcheck "$0"
|
||||
|
||||
# This must be called from repo root as current directory
|
||||
|
||||
NONCE=$(date +%s)
|
||||
|
||||
for packagedir in ./packages/*; do
|
||||
if [[ -d "$packagedir" ]]; then
|
||||
mkdir -p "$packagedir/nonces"
|
||||
echo "Directory used to trigger lerna package updates for all packages" \
|
||||
> "$packagedir/nonces/README.txt"
|
||||
touch "$packagedir/nonces/$NONCE"
|
||||
echo "Added nonce to package $packagedir"
|
||||
fi
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user