0g-chain/docs/pre.sh

8 lines
201 B
Bash
Raw Normal View History

2020-05-28 22:11:30 +00:00
#!/usr/bin/env bash
for D in ../x/*; do
if [ -d "${D}" ]; then
rm -rf "./$(echo $D | awk -F/ '{print $NF}')"
mkdir -p "./$(echo $D | awk -F/ '{print $NF}')" && cp -r $D/spec/* "$_"
fi
done