fix
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
-- Leave empty for public repos, or add "your-token-here"
|
||||
local GIT_TOKEN = ""
|
||||
|
||||
local GIT_OUTPUT_LOCATION = "/home"
|
||||
|
||||
-- Update config
|
||||
local UPDATE_URL = "https://git.ejebring.com/eejebring/CC-tweaked-Gitea-Client/raw/branch/main/git.lua"
|
||||
local GIT_FILE = "git.lua"
|
||||
@@ -124,7 +122,7 @@ local function cloneRepo(url)
|
||||
local count = 0
|
||||
for _, node in ipairs(tree.tree) do
|
||||
if node.type == "blob" then
|
||||
local localPath = ("%s/%s/%s"):format(GIT_OUTPUT_LOCATION, urlInfo.repo, node.path)
|
||||
local localPath = ("%s/%s"):format(urlInfo.repo, node.path)
|
||||
local dir = fs.getDir(localPath)
|
||||
|
||||
if not fs.isDir(dir) then fs.makeDir(dir) end
|
||||
@@ -134,7 +132,7 @@ local function cloneRepo(url)
|
||||
end
|
||||
end
|
||||
|
||||
print(("Cloned %d files to %s/%s"):format(count, GIT_OUTPUT_LOCATION, urlInfo.repo))
|
||||
print(("Cloned %d files to /home/%s"):format(count, urlInfo.repo))
|
||||
end
|
||||
|
||||
local args = { ... }
|
||||
|
||||
Reference in New Issue
Block a user