We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18229bd commit 491cd59Copy full SHA for 491cd59
luasrc/patch.lua
@@ -7,12 +7,17 @@ private_vibescript.configure_patch = function ()
7
error("No repo provided in patch")
8
end
9
local patch_dest = os.getenv("HOME").."/.vibescript_patches/"
10
- local hasher = dtw.newHash()
+ local hasher = dtw.newHasher()
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)
+ if not dtw.isdir(patch_folder) then
16
+ os.execute("git clone "..patch.repo.." "..patch_folder)
17
+ end
18
+ local git_pull_command = "cd "..patch_folder.." && git pull"
19
+ os.execute(git_pull_command)
20
+
21
22
23
0 commit comments