-
Notifications
You must be signed in to change notification settings - Fork 45
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: action with command that exits with errorcode ! 0 is reported as OK #316
Comments
btw there's a proper file copy and directory copy action that needs more than just me complaining about :> |
Well aware, but since the privileged/sudo was not documented I was trying it this way (hence Original remark stands though, the exit code should be evaluated. |
@Blizzke I'll fix the error propagation, no problem. @airtonix I'm not really sure how we could support privilege elevation for In-order for us to elevate privileges, we'd need to shell out to execute commands on the host and I don't feel like that's a very good solution. I'd really love to learn more about |
@Blizzke PR submitted with a fix |
Description
While trying to use
cp
to copy a file to/etc
(sincefile.copy
doesn't support privilege elevation at this point) comtrya reports a completed execution, no errors.If you run it in trace mode however, you see that the command failed with exit code 1,
Steps to reproduce
The above action tries to copy a file into
/etc
without sudo.Trace will show:
Expected behaviour
Visible error
Environment
The text was updated successfully, but these errors were encountered: