File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ private_vibescript.internal_main = function()
3737
3838
3939
40-
41-
42-
4340 if action == " version" or action == " --version" then
4441 print (" vibescript " .. private_vibescript .VERSION )
4542 return
Original file line number Diff line number Diff line change 1+ private_vibescript .configure_patch = function ()
2+ function ApllyPatch (patch )
3+ if not patch then
4+ error (" No patch provided" )
5+ end
6+ if not patch .repo then
7+ error (" No repo provided in patch" )
8+ end
9+ local patch_dest = os.getenv (" HOME" ).. " /.vibescript_patches/"
10+ local hasher = dtw .newHash ()
11+ hasher .digest (patch .repo )
12+
13+ local patch_folder = patch_dest .. hasher .get_value ()
14+ dtw .create_dir_recursively (patch_folder )
15+ os.execute (" git clone " .. patch .repo .. " " .. patch_folder )
16+
17+ end
18+ end
You can’t perform that action at this time.
0 commit comments