mirror of https://github.com/Hilbis/Hilbish
fix(cd): return err code of fs.cd instead of 1 specifically
parent
a140db1610
commit
accd4beeba
|
@ -20,7 +20,7 @@ commander.register('cd', function (args)
|
||||||
if err == 1 then
|
if err == 1 then
|
||||||
print('directory does not exist')
|
print('directory does not exist')
|
||||||
end
|
end
|
||||||
return 1
|
return err
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue