Permalink
Browse files

oh yeah, grep already does this.

  • Loading branch information...
1 parent a90ff82 commit c98af3e9c8fee46b99414a748bb5549bd191b9fb @jneen committed Jan 12, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/util.sh
View
@@ -12,13 +12,7 @@ exists() {
}
matches() {
- test -n $(
- if [ -n "$1" ]; then
- echo $1; shift
- else
- cat -
- fi | grep "$@"
- )
+ grep "$@" >/dev/null
}
pluralize() {

0 comments on commit c98af3e

Please sign in to comment.