From 31e903af2c99742617ac3b2ca55c9b9bb53e2e84 Mon Sep 17 00:00:00 2001
From: Michal Svamberg <svamberg@civ.zcu.cz>
Date: Tue, 25 Apr 2023 22:45:51 +0200
Subject: [PATCH] Oprava se kopiruje na stejnem storage
---
lib/method.dart | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/method.dart b/lib/method.dart
index 4c92060..966f3ea 100644
--- a/lib/method.dart
+++ b/lib/method.dart
@@ -24,10 +24,10 @@ class Method {
String getCommand() {
String best = '';
- print("SRC: ${src.location.host} -> DST: ${dst.location.host}");
+ print("SRC: ${src.getFqdn()} -> DST: ${dst.getFqdn()}");
best = selectCommand(
- src.location.host != null && src.location.host == dst.location.host && src.isScpRemote(),
- "ssh ${dst.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'",
+ src.getFqdn() == dst.getFqdn() && src.isScpRemote(),
+ "ssh ${src.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'",
best);
best = selectCommand(
--
GitLab