mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 04:00:30 +00:00
Always add HTTP programs to the path (#1172)
This commit is contained in:
parent
da5956e943
commit
371f931140
@ -13,8 +13,8 @@ if #tArgs < 2 then
|
||||
end
|
||||
|
||||
if not http then
|
||||
printError("Pastebin requires the http API")
|
||||
printError("Set http.enabled to true in CC: Tweaked's config")
|
||||
printError("Pastebin requires the http API, but it is not enabled")
|
||||
printError("Set http.enabled to true in CC: Tweaked's server config")
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -21,8 +21,8 @@ end
|
||||
local url = table.remove(tArgs, 1)
|
||||
|
||||
if not http then
|
||||
printError("wget requires the http API")
|
||||
printError("Set http.enabled to true in CC: Tweaked's config")
|
||||
printError("wget requires the http API, but it is not enabled")
|
||||
printError("Set http.enabled to true in CC: Tweaked's server config")
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
local completion = require "cc.shell.completion"
|
||||
|
||||
-- Setup paths
|
||||
local sPath = ".:/rom/programs"
|
||||
local sPath = ".:/rom/programs:/rom/programs/http"
|
||||
if term.isColor() then
|
||||
sPath = sPath .. ":/rom/programs/advanced"
|
||||
end
|
||||
@ -19,9 +19,6 @@ end
|
||||
if commands then
|
||||
sPath = sPath .. ":/rom/programs/command"
|
||||
end
|
||||
if http then
|
||||
sPath = sPath .. ":/rom/programs/http"
|
||||
end
|
||||
shell.setPath(sPath)
|
||||
help.setPath("/rom/help")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user