Skip to content

Commit

Permalink
minor #3785 ensure that destination directories don't exist before cr…
Browse files Browse the repository at this point in the history
…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 969fd71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.