Skip to content

Instantly share code, notes, and snippets.

@igorescobar igorescobar/clean-junk.sh
Last active Nov 21, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.