This commit is contained in:
lonegunmanb
2023-02-04 20:12:13 +08:00
committed by GitHub
parent 6ec09b5972
commit 62c65dcf48
12 changed files with 473 additions and 1 deletions

View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
if [ ! -d "TestRecord" ]; then
echo "No TestRecord found, exit"
exit 0
fi
cd TestRecord
folders=$(find ./ -maxdepth 1 -mindepth 1 -type d)
for f in $folders; do
d=${f#"./"}
if [ ! -f ../quickstart/$d/TestRecord.md ]; then
touch ../quickstart/$d/TestRecord.md
fi
cat ../quickstart/$d/TestRecord.md >> $d/TestRecord.md.tmp
cat $d/TestRecord.md.tmp > ../quickstart/$d/TestRecord.md
done
cd ..
git add **/TestRecord.md