mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-25 22:53:22 +00:00
15 lines
239 B
Lua
15 lines
239 B
Lua
|
|
local tArgs = { ... }
|
|
if #tArgs < 1 then
|
|
print( "Usage: cd <path>" )
|
|
return
|
|
end
|
|
|
|
local sNewDir = shell.resolve( tArgs[1] )
|
|
if fs.isDir( sNewDir ) then
|
|
shell.setDir( sNewDir )
|
|
else
|
|
print( "Not a directory" )
|
|
return
|
|
end
|