chore(tasks/update-website): do not read and write at the same time

This commit is contained in:
Nico Rehwaldt 2020-02-04 09:48:53 +01:00
parent aa2e1be8c3
commit 6ac75aa580

View File

@ -15,7 +15,8 @@ cd "$CLONE_DIR"
echo "Updating toolkit version to $TRAVIS_TAG on bpmn.io"
cat src/data/site.yml | tr "\r?\n" "\r" | sed -e "s#bpmnjs:\r version: [^\r]*\r#bpmnjs:\r version: $TRAVIS_TAG\r#" | tr "\r" "\n" > src/data/site.yml
cat src/data/site.yml | tr "\r?\n" "\r" | sed -e "s#bpmnjs:\r version: [^\r]*\r#bpmnjs:\r version: $TRAVIS_TAG\r#" | tr "\r" "\n" > src/data/site.yml_new
mv -f src/data/site.yml_new src/data/site.yml
if [[ "x$SKIP_COMMIT" = "x" ]]; then