mirror of https://github.com/Hilbis/Hilbish
parent
fad4282345
commit
3460df6863
|
@ -18,12 +18,12 @@ commander.register('cd', function (args)
|
|||
if err == 1 then
|
||||
print('directory does not exist')
|
||||
end
|
||||
bait.throw('command.fail', nil)
|
||||
else bait.throw('command.success', nil) end
|
||||
bait.throw('command.exit', err)
|
||||
else bait.throw('command.exit', 0) end
|
||||
return
|
||||
end
|
||||
fs.cd(os.getenv 'HOME')
|
||||
bait.throw('command.success', nil)
|
||||
bait.throw('command.exit', 0)
|
||||
end)
|
||||
|
||||
commander.register('exit', function()
|
||||
|
|
Loading…
Reference in New Issue