Skip to content

Commit

Permalink
fix concurrentCaller.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Apr 29, 2014
1 parent 57bf713 commit dde6a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concurrentCaller.groovy
Expand Up @@ -34,7 +34,7 @@ Preconditions.checkArgument(numOfThreads > 0, "number of threads must be greater
String script = options.s
String[] scriptAndArgs = script.split(/\s/)
File scriptFile = new File(scriptAndArgs[0])
String[] scriptArgs = Arrays.copyOfRange(scriptAndArgs, 1, scriptAndArgs.size())
String[] scriptArgs = scriptAndArgs.size() > 1 ? Arrays.copyOfRange(scriptAndArgs, 1, scriptAndArgs.size()) : []

Preconditions.checkArgument(scriptFile.exists(), "script does not exist at %s", scriptFile.absolutePath)
Preconditions.checkArgument(scriptFile.canExecute(), "script %s is not executable", scriptFile.name)
Expand Down

0 comments on commit dde6a7d

Please sign in to comment.