Created
September 27, 2016 15:18
-
-
Save havvg/20790fe565efc43e167c719aee1d545a to your computer and use it in GitHub Desktop.
Clean up composer vendors directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -type f -name composer.json -maxdepth 4 -exec dirname {} \; | \ | |
xargs -I{} find {} -type d -name vendor -maxdepth 1 | \ | |
xargs rm -Rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment