xst icon indicating copy to clipboard operation
xst copied to clipboard

incorrect exit code on failure (branch package-update)

Open chakl opened this issue 11 months ago • 0 comments

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

chakl avatar Mar 12 '24 19:03 chakl