2492: Properly escape Docker image name in Crunch.
authorBrett Smith <brett@curoverse.com>
Thu, 8 May 2014 13:34:33 +0000 (09:34 -0400)
committerBrett Smith <brett@curoverse.com>
Thu, 8 May 2014 13:34:33 +0000 (09:34 -0400)
sdk/cli/bin/crunch-job

index 48226d391edaf0b73011d395ff11a9540e3461b5..5d3bfdff7905becb8e141218af552de3ce3e9504 100755 (executable)
@@ -655,7 +655,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
       {
         $command .= "-e \Q$env_key=$env_val\E ";
       }
-      $command .= "$docker_image ";
+      $command .= "\Q$docker_image\E ";
     }
     $command .= "$ENV{CRUNCH_SRC}/crunch_scripts/" . $Job->{"script"};
     my @execargs = ('bash', '-c', $command);