Skip to content
This repository
Browse code

Merge pull request #1671 from lifinsky/master

Fix grails plugin
  • Loading branch information...
commit 2c069885cc0dca317df09d09a4f7774635efd193 2 parents 0ab0e67 + c1c7768
Robby Russell authored

Showing 1 changed file with 17 additions and 11 deletions. Show diff stats Hide diff stats

  1. +17 11 plugins/grails/grails.plugin.zsh
28 plugins/grails/grails.plugin.zsh
@@ -24,17 +24,23 @@ _enumerateGrailsScripts() {
24 24 return
25 25 fi
26 26
27   - # - Strip the path
28   - # - Remove all scripts with a leading '_'
29   - # - PackagePlugin_.groovy -> PackagePlugin
30   - # - PackagePlugin -> Package-Plugin
31   - # - Package-Plugin -> package-plugin
32   - basename $files \
33   - | sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
34   - -e 's/([a-z])([A-Z])/\1-\2/g' \
35   - | tr "[:upper:]" "[:lower:]" \
36   - | sort \
37   - | uniq
  27 + scripts=()
  28 + for file in $files
  29 + do
  30 + # - Strip the path
  31 + # - Remove all scripts with a leading '_'
  32 + # - PackagePlugin_.groovy -> PackagePlugin
  33 + # - PackagePlugin -> Package-Plugin
  34 + # - Package-Plugin -> package-plugin
  35 + command=$(basename $file \
  36 + | sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
  37 + -e 's/([a-z])([A-Z])/\1-\2/g' \
  38 + | tr "[:upper:]" "[:lower:]" \
  39 + | sort \
  40 + | uniq)
  41 + scripts+=($command)
  42 + done
  43 + echo $scripts
38 44 }
39 45
40 46 _grails() {

0 comments on commit 2c06988

Please sign in to comment.
Something went wrong with that request. Please try again.