Permalink
Browse files

[plugins/grails] Use globbing instead of grep

  • Loading branch information...
1 parent c6e8c85 commit 51736343595eb83f9d2364b50cf0b62227a4fab4 @zachriggle zachriggle committed Sep 10, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 plugins/grails/grails.plugin.zsh
@@ -21,7 +21,7 @@ _enumerateGrailsScripts() {
do
if [ -d $dir ]
then
- files+=($dir/*.groovy)
+ files+=($dir/[^_]*.groovy)
fi
done
@@ -37,7 +37,6 @@ _enumerateGrailsScripts() {
# - PackagePlugin -> Package-Plugin
# - Package-Plugin -> package-plugin
basename $files \
- | grep -vE -e '^_' \
| sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
-e 's/([a-z])([A-Z])/\1-\2/g' \
| tr "[:upper:]" "[:lower:]" \

0 comments on commit 5173634

Please sign in to comment.