Skip to content

Commit de7d206

Browse files
committed
ensure that destination directories don't exist before creating them
1 parent cfd6d7c commit de7d206

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install.sh

+2
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)