0g-chain/docs/pre.sh
2020-05-28 18:11:30 -04:00

8 lines
201 B
Bash
Executable File

#!/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