zrcadlo
https://github.com/Hilbis/Hilbish
synchronizováno 2025-07-18 16:52:02 +00:00
feat: cd with no path changes to homedir
Tento commit je obsažen v:
rodič
7326cb77c6
revize
8d92fc3b74
@ -10,8 +10,10 @@ commander.register('cd', function (path)
|
|||||||
local ok, err = pcall(function() fs.cd(path[1]) end)
|
local ok, err = pcall(function() fs.cd(path[1]) end)
|
||||||
if not ok then
|
if not ok then
|
||||||
if err == 1 then
|
if err == 1 then
|
||||||
print("directory does not exist")
|
print('directory does not exist')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
fs.cd(os.getenv 'HOME')
|
||||||
end)
|
end)
|
||||||
|
Načítá se…
x
Odkázat v novém úkolu
Zablokovat Uživatele