File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ private_vibescript.list_scripts = function(config_json)
1414 print_script = true
1515 end
1616 if print_script then
17- print (i .. " :" .. current_script .name )
17+ print (i .. " : " .. current_script .name )
1818 end
1919 end
2020end
Original file line number Diff line number Diff line change @@ -64,19 +64,21 @@ private_vibescript.internal_main = function()
6464 filename = script_name
6565 local found_filename = false
6666
67- local exec_flag = argv .get_compact_flags ({ " exec:" , " exec=" }, 1 )
68- if exec_flag then
69- print (" Executing script: " .. exec_flag )
70- end
71-
67+ local name_num = tonumber (script_name )
7268 for i = 1 , # config_json .scripts do
7369 if config_json .scripts [i ].name == script_name then
7470 filename = config_json .scripts [i ].file
7571 found_filename = true
7672 break
7773 end
74+ if name_num == i then
75+ filename = config_json .scripts [i ].file
76+ found_filename = true
77+ break
78+ end
79+
7880 end
79-
81+
8082 if not found_filename then
8183 filename = dtw .get_absolute_path (script_name )
8284 end
You can’t perform that action at this time.
0 commit comments