Skip to content

Commit 8649f85

Browse files
att
1 parent 491cd59 commit 8649f85

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

luasrc/patch.lua

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
private_vibescript.configure_patch = function ()
2-
function ApllyPatch(patch)
2+
function ApplyPatch(patch)
3+
4+
5+
36
if not patch then
47
error("No patch provided")
58
end
69
if not patch.repo then
710
error("No repo provided in patch")
811
end
12+
13+
if not patch.src then
14+
patch.src = "."
15+
end
16+
if not patch.dest then
17+
patch.dest = "."
18+
end
19+
20+
921
local patch_dest = os.getenv("HOME").."/.vibescript_patches/"
1022
local hasher = dtw.newHasher()
1123
hasher.digest(patch.repo)
@@ -17,7 +29,6 @@ private_vibescript.configure_patch = function ()
1729
end
1830
local git_pull_command = "cd "..patch_folder.." && git pull"
1931
os.execute(git_pull_command)
20-
2132

2233
end
2334
end

0 commit comments

Comments
 (0)