diff --git a/lib/Rex/Commands/Rsync.pm b/lib/Rex/Commands/Rsync.pm index 507548a59..cc406510f 100644 --- a/lib/Rex/Commands/Rsync.pm +++ b/lib/Rex/Commands/Rsync.pm @@ -122,7 +122,7 @@ sub sync { if ( !exists $opt->{download} && $source !~ m/^\// ) { # relative path, calculate from module root - $source = Rex::Helper::Path::get_file_path( $source, caller() ); + $source = Rex::Helper::Path::get_file_path($source); } Rex::Logger::debug("Syncing $source -> $dest with rsync.");