Skip to content

Commit

Permalink
[plugins/grails] Use globbing instead of grep
Browse files Browse the repository at this point in the history
  • Loading branch information
zachriggle committed Sep 10, 2011
1 parent c6e8c85 commit 5173634
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/grails/grails.plugin.zsh
Expand Up @@ -21,7 +21,7 @@ _enumerateGrailsScripts() {
do
if [ -d $dir ]
then
files+=($dir/*.groovy)
files+=($dir/[^_]*.groovy)
fi
done

Expand All @@ -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:]" \
Expand Down

0 comments on commit 5173634

Please sign in to comment.