Skip to content
Snippets Groups Projects

Bugfix: RunWorkerPath erroneously prefixed with "/" if set to empty string

Merged Marek Szuba requested to merge github/fork/tweep/runWorkerPathFix into version/2.5
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -204,7 +204,9 @@ sub runWorker_path {
my $self = shift @_;
my $path = $self->config_get('RunWorkerPath') // $ENV{'EHIVE_ROOT_DIR'}.'/scripts/';
$path = $path . '/' unless $path =~ /\/$/;
if ( length($path) ) {
$path = $path . '/' unless $path =~ /\/$/; # add "/" as suffix if user forgot
}
return $path;
}