summaryrefslogtreecommitdiff
path: root/tools/pyboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index 752504987..8c4696c43 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -583,7 +583,7 @@ def filesystem_command(pyb, args, progress_callback=None, verbose=False):
if cmd == "cp":
srcs = args[:-1]
dest = args[-1]
- if srcs[0].startswith("./") or dest.startswith(":"):
+ if dest.startswith(":"):
op = pyb.fs_put
fmt = "cp %s :%s"
dest = fname_remote(dest)