|
|
@ -2,8 +2,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
rm -rf .temp |
|
|
|
# ignore cloning if .temp/web-draw already exists |
|
|
|
git clone https://"$PAT"@github.com/roadmapsh/web-draw.git .temp/web-draw |
|
|
|
if [ ! -d ".temp/web-draw" ]; then |
|
|
|
|
|
|
|
mkdir -p .temp |
|
|
|
|
|
|
|
git clone git@github.com:roadmapsh/web-draw.git .temp/web-draw |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
rm -rf renderer |
|
|
|
rm -rf renderer |
|
|
|
mkdir renderer |
|
|
|
mkdir renderer |
|
|
@ -24,8 +27,5 @@ find renderer -type f \( -name "*.ts" -o -name "*.tsx" \) -print0 | while IFS= r |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# remove the temporary directory |
|
|
|
|
|
|
|
rm -rf .temp |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ignore the worktree changes for the renderer directory |
|
|
|
# ignore the worktree changes for the renderer directory |
|
|
|
git update-index --skip-worktree renderer/* |
|
|
|
git update-index --skip-worktree renderer/* |
|
|
|