-
Notifications
You must be signed in to change notification settings - Fork 116
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
Inconsistent return code #150
Comments
This is odd. Is this also happening when the |
Unfortunately, I'm not able to reproduce this. Could you please replace
|
Expected output:
|
There you go: Code:
Output:
Using another target (multiple executions):
|
Thank you, this is incredibly helpful. It really seems like there's a race condition where the exit event is not thrown, or simply too late. |
I tried multiple workarounds. Before continuing, it would be great if you could replace
|
Sorry for the delay! My flightplan.js:
The output (executed multiple times):
|
I'm trying to check if my remote machine has a specific command by using
which
and checking its return code.However, I'm getting some strange results as sometimes it is returned '1' and sometimes '0'.
Returning 0:
Returning 1:
Both calls were made seconds apart from each other.
Any thoughts on what's happening? Thanks!
The text was updated successfully, but these errors were encountered: