Skip to content

Commit

Permalink
fix: live editor exists error
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Aug 25, 2023
1 parent f553fa5 commit 5f8f79f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/editor.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ pushd packages/mermaid
npm link
popd

# Clone the Mermaid Live Editor repository
git clone https://github.com/mermaid-js/mermaid-live-editor.git

# Change to the repository directory
cd mermaid-live-editor
# Clone or update the Mermaid Live Editor repository
if [ ! -d "mermaid-live-editor" ]; then
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
cd mermaid-live-editor
else
cd mermaid-live-editor
git pull
fi

# Link local mermaid to live editor
npm link mermaid
Expand Down

0 comments on commit 5f8f79f

Please sign in to comment.