mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-07-01 01:23:30 +00:00
15 lines
228 B
Lua
15 lines
228 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
|