eXist-db / xst

Command line tool to interact with exist-db instances
https://npmjs.com/@existdb/xst
MIT License
17 stars 4 forks source link

incorrect exit code on failure (branch package-update) #217

Open chakl opened 4 months ago

chakl commented 4 months ago

What happened?

When using "xst package install registry", I mistakenly specified an invalid package name/version combination (there is no version 6.0.1 of "tuttle"). xst reported the failure, but returns exit code 0 which means "success". When using xst from Ansible, a failed package installation would be reported as "success".

$ /usr/local/bin/xst package install registry http://e-editiones.org/tuttle 6.0.1 --registry http://A_VALID_REGISTRY/exist/apps/public-repo/
Connecting to remote DB using an unencrypted channel.
✘ http://e-editiones.org/tuttle > could not be installed 
$ echo $?
0

xst should return non-zero on failed package installation.

System Information

No response

Relevant shell output

No response