Skip to content
Snippets Groups Projects
Commit 31e903af authored by Michal Svamberg's avatar Michal Svamberg
Browse files

Oprava se kopiruje na stejnem storage

parent 0676e7ba
No related branches found
No related tags found
No related merge requests found
Pipeline #3649 failed
...@@ -24,10 +24,10 @@ class Method { ...@@ -24,10 +24,10 @@ class Method {
String getCommand() { String getCommand() {
String best = ''; String best = '';
print("SRC: ${src.location.host} -> DST: ${dst.location.host}"); print("SRC: ${src.getFqdn()} -> DST: ${dst.getFqdn()}");
best = selectCommand( best = selectCommand(
src.location.host != null && src.location.host == dst.location.host && src.isScpRemote(), src.getFqdn() == dst.getFqdn() && src.isScpRemote(),
"ssh ${dst.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'", "ssh ${src.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'",
best); best);
best = selectCommand( best = selectCommand(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment