Permalink
Browse files

minor #3785 ensure that destination directories don't exist before cr…

…eating them (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

ensure that destination directories don't exist before creating them

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

The ``install.sh`` script fails if you run it multiple times (e.g. to update the bundle and CMF docs).

Commits
-------

de7d206 ensure that destination directories don't exist before creating them
  • Loading branch information...
weaverryan committed Apr 21, 2014
2 parents a81d367 + de7d206 commit 969fd71a5fbef26a721784551d62dbd842d05ad4
Showing with 2 additions and 0 deletions.
  1. +2 −0 install.sh
@@ -8,6 +8,7 @@ function sparse_checkout {
git remote add -f origin http://github.com/$1/$2
echo Resources/doc > .git/info/sparse-checkout
git checkout master
rm -rf ../bundles/$2
mv Resources/doc ../bundles/$2
cd ..
rm -rf sparse_checkout
@@ -18,5 +19,6 @@ sparse_checkout sensiolabs SensioGeneratorBundle
sparse_checkout doctrine DoctrineFixturesBundle
sparse_checkout doctrine DoctrineMigrationsBundle
sparse_checkout doctrine DoctrineMongoDBBundle
rm -rf cmf
git clone http://github.com/symfony-cmf/symfony-cmf-docs cmf

0 comments on commit 969fd71

Please sign in to comment.