add ci (#140)
This commit is contained in:
23
scripts/update-test-record.sh
Normal file
23
scripts/update-test-record.sh
Normal 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
|
Reference in New Issue
Block a user