mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -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)
|
||||
checkArg(1, value, "string")
|
||||
path = {}
|
||||
for p in string:gmatch(value, "[^:]") do
|
||||
for p in string.gmatch(value, "[^:]+") do
|
||||
p = fs.canonical(text.trim(p))
|
||||
if unicode.sub(p, 1, 1) ~= "/" then
|
||||
p = "/" .. p
|
||||
|
Loading…
x
Reference in New Issue
Block a user