Allow sending file_path with symbols

This commit is contained in:
fbsanchez 2021-04-20 13:22:13 +02:00
parent d380e2cd45
commit d3dc3044aa
1 changed files with 2 additions and 2 deletions

View File

@ -867,11 +867,11 @@ sub transfer_xml {
my $r = -1;
#Send using tentacle
if ($^O =~ /win/i) {
$msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} "$file_path"`;
$msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} '$file_path'`;
$r = $?;
}
else {
$msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} "$file_path" 2>&1`;
$msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} '$file_path' 2>&1`;
$r = $?;
}