mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
fixed shell.setPath(), closes #53
This commit is contained in:
parent
969181a286
commit
27316ff8c2
@ -84,7 +84,7 @@ end
|
|||||||
function shell.setPath(value)
|
function shell.setPath(value)
|
||||||
checkArg(1, value, "string")
|
checkArg(1, value, "string")
|
||||||
path = {}
|
path = {}
|
||||||
for p in string:gmatch(value, "[^:]") do
|
for p in string.gmatch(value, "[^:]+") do
|
||||||
p = fs.canonical(text.trim(p))
|
p = fs.canonical(text.trim(p))
|
||||||
if unicode.sub(p, 1, 1) ~= "/" then
|
if unicode.sub(p, 1, 1) ~= "/" then
|
||||||
p = "/" .. p
|
p = "/" .. p
|
||||||
|
Loading…
x
Reference in New Issue
Block a user