Commit 4aa09d4d authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

pipeline_create_commands() can also be arrays.

This can solve issues about quoting the arguments
parent 10210138
......@@ -61,7 +61,7 @@ use strict;
use warnings;
use Bio::EnsEMBL::Hive;
use Bio::EnsEMBL::Hive::Utils ('stringify');
use Bio::EnsEMBL::Hive::Utils ('stringify join_command_args');
use Bio::EnsEMBL::Hive::Utils::Collection;
use Bio::EnsEMBL::Hive::Utils::URL;
use Bio::EnsEMBL::Hive::DBSQL::DBAdaptor;
......@@ -354,6 +354,9 @@ sub run_pipeline_create_commands {
my $self = shift @_;
foreach my $cmd (@{$self->overridable_pipeline_create_commands}) {
# We allow commands to be given as an arrayref, but we join the
# array elements anyway
my $cmd = join_command_args($cmd)->[1];
warn "Running the command:\n\t$cmd\n";
if(my $retval = system($cmd)) {
die "Return value = $retval, possibly an error\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment