fix(cd): make it return 1 exit code on err

pull/59/head
sammy 2021-05-11 18:55:22 -04:00
parent 630d7dde9c
commit a140db1610
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ commander.register('cd', function (args)
if err == 1 then
print('directory does not exist')
end
bait.throw('command.exit', err)
else bait.throw('command.exit', 0) end
return 1
end
return
end
fs.cd(os.getenv 'HOME')