-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Input (bash) code
some command
RESULT=$?
if [ $RESULT != 0 ]; then
echo "Aborting on $RESULT, command failed:"
exit $RESULT
fi
Expected output ShellJS (JavaScript) code
exec('some command');
env.RESULT = (error()=='null' ? 0 : 1);
if (env.RESULT !== 0) {
echo('Aborting on ' + env.RESULT + ', command failed:');
exit(env.RESULT);
}
Actual output ShellJS (JavaScript) code
exec('some command');
env.RESULT = error();
if (env.RESULT !== 0) {
echo('Aborting on ' + env.RESULT + ', command failed:');
exit(env.RESULT);
}
Metadata
Metadata
Assignees
Labels
No labels