mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 23:04:24 +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
|
# changed order to ensure different combinations of commands aren't created
|
||||||
for dirty_target in dirty_targets:
|
for dirty_target in dirty_targets:
|
||||||
for command in commands:
|
for command in commands:
|
||||||
|
new_task = command.clone()
|
||||||
if command.name().find(variable) != -1:
|
if command.name().find(variable) != -1:
|
||||||
new_task = command.clone()
|
|
||||||
|
|
||||||
new_task.replace("_target_", dirty_target)
|
new_task.replace("_target_", dirty_target)
|
||||||
|
|
||||||
# replace all https:// or https:// with nothing
|
# replace all https:// or https:// with nothing
|
||||||
@@ -191,8 +190,9 @@ class InputHelper(object):
|
|||||||
new_task.replace(variable, clean_target)
|
new_task.replace(variable, clean_target)
|
||||||
add_task(new_task, tasks, temp)
|
add_task(new_task, tasks, temp)
|
||||||
else:
|
else:
|
||||||
command.replace("_target_", dirty_target)
|
new_task.replace("_target_", dirty_target)
|
||||||
add_task(command, tasks, temp)
|
print(dirty_target)
|
||||||
|
add_task(new_task, tasks, temp)
|
||||||
|
|
||||||
return tasks
|
return tasks
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user