xst
xst copied to clipboard
incorrect exit code on failure (branch package-update)
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