mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-26 08:20:41 +00:00
fix(commands/cd): use absolute paths to cd
This commit is contained in:
parent
a41a5504f4
commit
5b46158008
@ -19,7 +19,7 @@ commander.register('cd', function (args, sinks)
|
||||
dirs.setOld(hilbish.cwd())
|
||||
dirs.push(path)
|
||||
|
||||
local ok, err = pcall(function() fs.cd(path) end)
|
||||
local ok, err = pcall(function() fs.cd(fs.abs(path)) end)
|
||||
if not ok then
|
||||
sinks.out:writeln(err)
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user