Skip to content

Commit c80226d

Browse files
att
1 parent e9741d3 commit c80226d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

luasrc/actions/scripts/llist_scripts.lua

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ private_vibescript.list_scripts = function(config_json)
44

55
for i =1 , #config_json.scripts do
66
local current_script = config_json.scripts[i]
7-
8-
if start_filtrage then
7+
local print_script = false
8+
if start_filtrage then
99
if dtw.starts_with(current_script.name, start_filtrage) then
10-
print(current_script.name)
10+
print_script = true
1111
end
1212
end
13-
14-
if not start_filtrage then
15-
print(current_script.name)
13+
if not start_filtrage then
14+
print_script = true
1615
end
17-
16+
if print_script then
17+
print(i..":"..current_script.name)
18+
end
1819
end
1920
end

0 commit comments

Comments
 (0)