mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 19:53:23 +00:00
fix(cd): return err code of fs.cd instead of 1 specifically
This commit is contained in:
parent
a140db1610
commit
accd4beeba
@ -20,7 +20,7 @@ commander.register('cd', function (args)
|
||||
if err == 1 then
|
||||
print('directory does not exist')
|
||||
end
|
||||
return 1
|
||||
return err
|
||||
end
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user