2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +00:00

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

This commit is contained in:
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

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')