mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
18 lines
497 B
Bash
Executable File
18 lines
497 B
Bash
Executable File
#!/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
|