Skip to content

Commit 4f359c4

Browse files
committed
Use a find loop instead of cp a dir
1 parent 3f763c2 commit 4f359c4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
run: |
2727
git clone https://github.com/errata-ai/Microsoft.git
2828
mkdir ./styles/Microsoft
29-
ls -alR ./Microsoft/Microsoft
30-
pwd
31-
cp –r ./Microsoft/Microsoft/ ./styles/Microsoft
29+
find ./Microsoft/Microsoft/ -type f | while read fname; do
30+
dirname=`dirname "$fname"`
31+
filename=`basename "$fname"`
32+
cp "${dirname}/$filename" "./styles/Microsoft"
33+
done
3234
make deps
3335
VALEFILES=$(find -L ./docs/ -type d \( -path "./docs/plone.restapi/lib/*" -o -path "./docs/plone.restapi/performance/*" \) -prune -false -o -type f -name "*.md" -print)
3436
make vale $VALEFILES

0 commit comments

Comments
 (0)