Skip to content

Commit 9e3d539

Browse files
author
Will Thomas
committed
added gitrepo to programs.cfg, other tweaks
also fixed a bug in gitrepo.lua in this one
1 parent 604eef1 commit 9e3d539

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

gitrepo.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ if not repo:match("^[%w-.]*/[%w-.]*$") then
2929
return
3030
end
3131

32-
target=args[2] and ("/"..target:match("^/?(.-)/?$").."/") or "/tmp/"..repo
32+
target=args[2]
33+
target=target and ("/"..target:match("^/?(.-)/?$").."/") or "/tmp/"..repo
3334
if filesystem.exists(target) then
3435
if not filesystem.isDirectory(target) then
3536
print("target directory already exists and is not a directory.")

programs.cfg

+11-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
["master/gml/lib/gml.lua"] = "/lib",
99
["master/gml/lib/gmlDialogs.lua"] = "/lib",
1010
},
11-
dependencies = {
12-
},
1311
name = "GML",
1412
description = "Gopher's GUI Libraries for OpenComputers",
1513
authors = "Gopher",
1614
note = "see gml-examples package for sample programs, and the repo wiki on github for documentation",
17-
hidden = false,
1815
repo="tree/master/gml"
1916
},
2017
["gml-examples"] = {
@@ -29,7 +26,17 @@
2926
description = "Example programs using GML",
3027
authors = "Gopher",
3128
note = "see gmlExamples package for sample programs, and the repo wiki on github for documentation",
32-
hidden = false,
3329
repo="tree/master/gml"
3430
},
31+
["gitrepo"] = {
32+
files = {
33+
["master/gitrepo.lua"] = "/bin",
34+
},
35+
name = "gitrepo",
36+
description = "Basic git repo downloader",
37+
authors = "Gopher",
38+
note = "downloads an entire github repository to a specified directory",
39+
repo="tree/master/gitrepo.lua"
40+
},
41+
3542
}

0 commit comments

Comments
 (0)