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 237
237
throw new \RuntimeException ('You need to specify a destination path. ' );
238
238
}
239
239
240
+ $ rsyncFlags = (is_string ($ config ['flags ' ]) && trim ($ config ['flags ' ]) !== '' ) ? "- {$ config ['flags ' ]}" : '' ;
241
+
240
242
$ host = Context::get ()->getHost ();
241
243
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 );
243
245
return ;
244
246
}
245
247
246
248
$ 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 );
248
250
});
You can’t perform that action at this time.
0 commit comments