Skip to content

Instantly share code, notes, and snippets.

@igorescobar
Last active November 21, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorescobar/76efe9d6554005a5783d8a23c03664f4 to your computer and use it in GitHub Desktop.
Save igorescobar/76efe9d6554005a5783d8a23c03664f4 to your computer and use it in GitHub Desktop.
Clean junk files from vendor/bundle directory
#!/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