> @@ -47,7 +47,20 @@ protected InitScriptConfigurationForTasks() {
>     public InitScriptConfigurationForTasks initScriptPattern(
>              @Named(PROPERTY_INIT_SCRIPT_PATTERN) String initScriptPattern) {
>        this.initScriptPattern = checkNotNull(initScriptPattern, 
> "initScriptPattern ex. /tmp/init-%s");
> -      this.basedir = new File(initScriptPattern).getParent();
> +      checkArgument(this.initScriptPattern.startsWith("/"), 
> "initScriptPattern must be a UNIX-style path starting at the root (/)");
> +
> +      int lastSlash = initScriptPattern.lastIndexOf('/');
> +      if (lastSlash == -1) {
> +         // no slash? impossible if the checkArgument above had worked 
> properly!

Then remove this statement, and leave just the comment?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/677/files#r24507846

Reply via email to