Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With the -r parameter in the gossh script command, the script execution is considered successful even if the script returns a non-zero exit code #37

Closed
windvalley opened this issue May 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@windvalley
Copy link
Owner

For example:

cat test.sh

#!/usr/bin/env bash

echo mock error

exit 1
$ gossh script node1.sre.im -e test.sh -uvagrant -r

The output is:

node1.sre.im | 2024-05-29 11:23:34.369629 | SUCCESS >>
mock error

[INFO] 2024-05-29 11:23:34.369776 success count: 1, failed count: 0, elapsed: 0.20s

But the output should be:

node1.sre.im | 2024-05-29 11:26:36.420079 | FAILED >>
mock error

[INFO] 2024-05-29 11:26:36.420124 success count: 0, failed count: 1, elapsed: 0.64s
@windvalley windvalley added the bug Something isn't working label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant