mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 14:54:21 +01:00
Fixed silly mistake with command creation
This commit is contained in:
@@ -175,9 +175,8 @@ class InputHelper(object):
|
||||
# changed order to ensure different combinations of commands aren't created
|
||||
for dirty_target in dirty_targets:
|
||||
for command in commands:
|
||||
if command.name().find(variable) != -1:
|
||||
new_task = command.clone()
|
||||
|
||||
if command.name().find(variable) != -1:
|
||||
new_task.replace("_target_", dirty_target)
|
||||
|
||||
# replace all https:// or https:// with nothing
|
||||
@@ -191,8 +190,9 @@ class InputHelper(object):
|
||||
new_task.replace(variable, clean_target)
|
||||
add_task(new_task, tasks, temp)
|
||||
else:
|
||||
command.replace("_target_", dirty_target)
|
||||
add_task(command, tasks, temp)
|
||||
new_task.replace("_target_", dirty_target)
|
||||
print(dirty_target)
|
||||
add_task(new_task, tasks, temp)
|
||||
|
||||
return tasks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user