Browse Source

Merge pull request #55 from 2114L3/patch-1

Update main.py
Peter Magnusson 8 years ago
parent
commit
324ed74f31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nodemcu_uploader/main.py

+ 1 - 1
nodemcu_uploader/main.py

@@ -28,7 +28,7 @@ def destination_from_source(sources):
         srcdst = sources[i].split(':')
         if len(srcdst) == 2:
             destinations.append(srcdst[1])
-            newsources[i] = srcdst[0]
+            newsources.append(srcdst[0]) #proper list assignment
         else:
             listing = glob.glob(srcdst[0])
             for filename in listing: