Skip to content

Commit 969fd71

Browse files
committed
minor #3785 ensure that destination directories don't exist before creating 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
2 parents a81d367 + de7d206 commit 969fd71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ function sparse_checkout {
88
git remote add -f origin http://github.com/$1/$2
99
echo Resources/doc > .git/info/sparse-checkout
1010
git checkout master
11+
rm -rf ../bundles/$2
1112
mv Resources/doc ../bundles/$2
1213
cd ..
1314
rm -rf sparse_checkout
@@ -18,5 +19,6 @@ sparse_checkout sensiolabs SensioGeneratorBundle
1819
sparse_checkout doctrine DoctrineFixturesBundle
1920
sparse_checkout doctrine DoctrineMigrationsBundle
2021
sparse_checkout doctrine DoctrineMongoDBBundle
22+
rm -rf cmf
2123
git clone http://github.com/symfony-cmf/symfony-cmf-docs cmf
2224

0 commit comments

Comments
 (0)