Open sam-maverick opened 6 months ago
This will be supported in shell.errorCode()
. That will be in the next shelljs release when I get around to it.
I'll keep this open in case someone wants to update the transpiler to use the new API when it's available.
Thanks for the feedback!
Input (bash) code
Expected output ShellJS (JavaScript) code
Actual output ShellJS (JavaScript) code