-
Notifications
You must be signed in to change notification settings - Fork 2
/
sync.sh
executable file
·22 lines (18 loc) · 1.16 KB
/
sync.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -x #echo on
if [ -d ../openpix-developers ]; then
dir='openpix-developers'
else
dir='developers'
fi
rsync -av --delete "../$dir/docs" ./ --exclude docs/ecommerce/magento1
rsync -av --delete "../$dir/static" ./ --exclude static/magento1
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/OpenPix/Woovi/g'
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/openpix.com.br/woovi.com/g'
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/openpix.com/woovi.com/g'
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/X-Woovi-Signature/X-OpenPix-Signature/g'
# todo: improve docs to support replace openpix -> woovi
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/openpix-trigger-n8n/woovi-trigger-n8n/g'
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/n8n-with-openpix/n8n-with-woovi/g'
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/n8n-nodes-openpix/n8n-nodes-woovi/g'
find docs -type f \( -iname \*.md -o -iname \*.mdx \) | xargs sed -i '' 's/select-openpix-nodes/select-woovi-nodes/g'