Merge pull request #691 from dcbrwn/master

Clean up dist folder before copying new files
master
Evgeny Poberezkin 2018-02-04 20:19:42 +00:00 committed by GitHub
commit af24c6e823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -10,9 +10,10 @@ if [[ -n $TRAVIS_TAG && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
git clone https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv-dist.git ../ajv-dist
mkdir -p ../ajv-dist/dist
cp ./dist/* ../ajv-dist/dist
cp ./bower.json ../ajv-dist
rm -rf ../ajv-dist/dist
mkdir ../ajv-dist/dist
cp ./dist/ajv.* ../ajv-dist/dist
cat bower.json | sed 's/"name": "ajv"/"name": "ajv-dist"/' > ../ajv-dist/bower.json
cd ../ajv-dist
if [[ `git status --porcelain` ]]; then