File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ function main(url)
4040
4141 -- check
4242 url = url :trim ()
43- assert (# url > 0 )
43+ assert (# url > 0 , " provided URL is empty! " )
4444
4545 -- safe because all custom_protocol supports https
4646 local lower = url :lower ()
Original file line number Diff line number Diff line change @@ -28,7 +28,13 @@ import("private.action.require.impl.environment")
2828-- get plugin urls
2929function _plugin_urls ()
3030 local urls = option .get (" plugins" )
31- if not urls then
31+ if urls then
32+ local result = {}
33+ for _ , url in ipairs (urls ) do
34+ table.insert (result , git .asgiturl (url ) or url )
35+ end
36+ urls = result
37+ else
3238 urls = {
3339 " https://github.com/xmake-io/xmake-plugins.git" ,
3440 " https://gitlab.com/tboox/xmake-plugins.git" ,
You can’t perform that action at this time.
0 commit comments