fix: return 0 exit code when cd with noarg instead of throwing hook explicitly

pull/61/head
sammyette 2021-06-09 20:30:12 -04:00
parent 95dee1f4dd
commit 792ce996d3
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ commander.register('cd', function (args)
return return
end end
fs.cd(os.getenv 'HOME') fs.cd(os.getenv 'HOME')
bait.throw('command.exit', 0)
return
end) end)
commander.register('exit', function() commander.register('exit', function()