-
Notifications
You must be signed in to change notification settings - Fork 32
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
[BUG] improper exit code on failed command #185
Comments
D'oh. Easy fix. I'll queue this up soon. Thanks, @clemenko |
thanks @amartin120 fantastic! |
here is the use case : https://github.com/clemenko/rke_airgap_install/blob/main/hauler_all_the_things.sh#L149 |
PR: #187. (merged) in line for v1.0.1, "soon" |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environmental Info:
rocky 9
Hauler Version:
0.4.4
System CPU architecture, OS, and Version:
Linux iventoy 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 8 17:36:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug:
when the hauler command failed it still has an exit code of "0" which tells bash it completed.
Steps To Reproduce:
type a filename wrong
hauler store sync -f /opt/hauler/airgap_haulerdd.yaml
Expected behavior:
when hauler has an
ERR
output an exit code of '1' is expected1:50PM ERR open /opt/hauler/airgap_haulerdd.yaml: no such file or directory
Actual behavior:
exit code "0"
Additional context / logs:
I am trying to add error checking around the use of hauler and have correct exit codes is important.
The text was updated successfully, but these errors were encountered: