mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 23:15:57 +03:00
[GH-ISSUE #537] Can't add return codes for script checks #341
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#341
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @guillaumebottollier on GitHub (May 28, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/537
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
When creating a script check, it's not possible to had return codes informational or warning, pressing enter has no effects
To Reproduce
Steps to reproduce the behavior:
create a script check and try to had codes informational or warning
Expected behavior
code should be added
Screenshots

Additional context
Add any other context about the problem here.
@sadnub commented on GitHub (May 28, 2021):
Exit codes need to be a number. Also for powershell, make sure you set the exit code like this:
Due to the way scripts are executed the actual exit code won't come through properly with this.
Hope this helps!
@wh1te909 commented on GitHub (May 28, 2021):
https://shapeshed.com/unix-exit-codes/#what-is-an-exit-code-in-the-unix-or-linux-shell
@guillaumebottollier commented on GitHub (May 31, 2021):
Great, this works ! many thanks !