File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 237237 throw new \RuntimeException ('You need to specify a destination path. ' );
238238 }
239239
240+ $ rsyncFlags = (is_string ($ config ['flags ' ]) && trim ($ config ['flags ' ]) !== '' ) ? "- {$ config ['flags ' ]}" : '' ;
241+
240242 $ host = Context::get ()->getHost ();
241243 if ($ host instanceof Localhost) {
242- runLocally ("rsync - { $ config [ ' flags ' ] } {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} ' $ src/' ' $ dst/' " , $ config );
244+ runLocally ("rsync { $ rsyncFlags } {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} ' $ src/' ' $ dst/' " , $ config );
243245 return ;
244246 }
245247
246248 $ sshArguments = $ host ->connectionOptionsString ();
247- runLocally ("rsync - { $ config [ ' flags ' ] } -e 'ssh $ sshArguments' {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} ' $ src/' ' {$ host ->connectionString ()}: $ dst/' " , $ config );
249+ runLocally ("rsync { $ rsyncFlags } -e 'ssh $ sshArguments' {{rsync_options}}{{rsync_includes}}{{rsync_excludes}}{{rsync_filter}} ' $ src/' ' {$ host ->connectionString ()}: $ dst/' " , $ config );
248250});
You can’t perform that action at this time.
0 commit comments