fishi0x01 / vsh

vsh - HashiCorp Vault interactive shell and cli tool
MIT License
284 stars 12 forks source link

Non-zero return codes on error #49

Closed fishi0x01 closed 4 years ago

fishi0x01 commented 4 years ago

Currently, the return code is always 0, also if a command failed. To comply with unix best practices, in non-interactive mode return codes should be non-zero on error, e.g.,:

$ vsh -c "cat /does/not/exist"
$ echo $?
1