fix(cd): return err code of fs.cd instead of 1 specifically

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

View File

@ -20,7 +20,7 @@ commander.register('cd', function (args)
if err == 1 then
print('directory does not exist')
end
return 1
return err
end
return
end