Permalink
Browse files

Fix for ioobe when passing no args after script name.

  • Loading branch information...
1 parent 6768c14 commit eac16139db0fea7d52a5ab71a5e451fb8449505b @marcpa00 marcpa00 committed with aalmiray May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 subprojects/griffon-scripts/src/main/groovy/RunScript.groovy
@@ -46,7 +46,7 @@ target(name: 'runScript', description: 'Execute the specified script(s) after st
scriptArgsStartIndex = argIndex + 1
}
}
- if (scriptArgsStartIndex > 0) {
+ if (scriptArgsStartIndex > 0 && scriptArgsStartIndex < unparsedArgs.length) {
scriptArgs = unparsedArgs[scriptArgsStartIndex..-1] as String[]
}

0 comments on commit eac1613

Please sign in to comment.