Created
September 3, 2019 11:28
-
-
Save PatricNox/723d02b346ff4abb315a71fd8c09b7e9 to your computer and use it in GitHub Desktop.
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/sh | |
##### | |
# These two shell commands goes through all subfolders in the current standing folder | |
# and deletes vendor & node_module folder. | |
#### | |
# Recursively find and delete all folders called: "node_modules" | |
### Used by npm. | |
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + | |
# Recursively find and delete all folders called: "vendor" | |
### Used by composer. | |
find . -name "vendor" -type d -prune -exec rm -rf '{}' + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment