Skip to content

Commit bbb7184

Browse files
committed
Fix rsync operations for source directories containing a relative path with a wildcard
1 parent 7773c58 commit bbb7184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Rex/Commands/Rsync.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ sub sync {
122122
if ( !exists $opt->{download} && $source !~ m/^\// ) {
123123

124124
# relative path, calculate from module root
125-
$source = Rex::Helper::Path::get_file_path( $source, caller() );
125+
$source = Rex::Helper::Path::get_file_path($source);
126126
}
127127

128128
Rex::Logger::debug("Syncing $source -> $dest with rsync.");

0 commit comments

Comments
 (0)