File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ if not repo:match("^[%w-.]*/[%w-.]*$") then
29
29
return
30
30
end
31
31
32
- target = args [2 ] and (" /" .. target :match (" ^/?(.-)/?$" ).. " /" ) or " /tmp/" .. repo
32
+ target = args [2 ]
33
+ target = target and (" /" .. target :match (" ^/?(.-)/?$" ).. " /" ) or " /tmp/" .. repo
33
34
if filesystem .exists (target ) then
34
35
if not filesystem .isDirectory (target ) then
35
36
print (" target directory already exists and is not a directory." )
Original file line number Diff line number Diff line change 8
8
[" master/gml/lib/gml.lua" ] = " /lib" ,
9
9
[" master/gml/lib/gmlDialogs.lua" ] = " /lib" ,
10
10
},
11
- dependencies = {
12
- },
13
11
name = " GML" ,
14
12
description = " Gopher's GUI Libraries for OpenComputers" ,
15
13
authors = " Gopher" ,
16
14
note = " see gml-examples package for sample programs, and the repo wiki on github for documentation" ,
17
- hidden = false,
18
15
repo =" tree/master/gml"
19
16
},
20
17
[" gml-examples" ] = {
29
26
description = " Example programs using GML" ,
30
27
authors = " Gopher" ,
31
28
note = " see gmlExamples package for sample programs, and the repo wiki on github for documentation" ,
32
- hidden = false,
33
29
repo =" tree/master/gml"
34
30
},
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
+
35
42
}
You can’t perform that action at this time.
0 commit comments