Remove directories if they exist

pull/21833/head
David Baker 2018-05-02 16:49:08 +01:00
parent 82349ec933
commit 9f8202c8a9
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ set -x
npm install
scripts/fetchdep.sh matrix-org matrix-js-sdk
rm -r node_modules/matrix-js-sdk || true
ln -s ../matrix-js-sdk node_modules/matrix-js-sdk
(cd matrix-js-sdk && npm install)

View File

@ -5,6 +5,8 @@ set -e
org="$1"
repo="$2"
rm -r "$repo" || true
curbranch="$TRAVIS_PULL_REQUEST_BRANCH"
[ -z "$curbranch" ] && curbranch="$TRAVIS_BRANCH"
[ -z "$curbranch" ] && curbranch=`"echo $GIT_BRANCH" | sed -e 's/^origin\///'` # jenkins