Last active
November 21, 2017 14:49
-
-
Save igorescobar/76efe9d6554005a5783d8a23c03664f4 to your computer and use it in GitHub Desktop.
Clean junk files from vendor/bundle directory
This file contains hidden or 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
#!/usr/bin/env bash | |
find ./vendor/bundle \( -name '__tests__' -o \ | |
-name "*.md" -o \ | |
-name "*LICENSE*" -o \ | |
-name "*.ts" -o \ | |
-name "*.jst" -o \ | |
-name "*.coffee" -o \ | |
-name "*.rdoc" -o \ | |
-name "example" -o \ | |
-name "examples" -o \ | |
-name "coverage" -o \ | |
-name "CHANGELOG" -o \ | |
-name "CHANGES" -o \ | |
-name "COPYING" -o \ | |
-name "NEWS" -o \ | |
-name "GOALS" -o \ | |
-name "test" -o \ | |
-name "*.tgz" \) -exec rm -r '{}' \; -prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment