From bbb71848b27be8cba1d7a118ce3d0d8bbdc468e5 Mon Sep 17 00:00:00 2001 From: Steve Dondley Date: Tue, 23 Jun 2020 13:44:01 -0400 Subject: [PATCH] Fix rsync operations for source directories containing a relative path with a wildcard --- lib/Rex/Commands/Rsync.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.");