diff --git a/bin/bpipe-torque.sh b/bin/bpipe-torque.sh index 5b7805f5..242169be 100755 --- a/bin/bpipe-torque.sh +++ b/bin/bpipe-torque.sh @@ -216,10 +216,14 @@ $COMMAND ) -echo \$? > $JOBDIR/cmd.exit +EXIT_CODE=\$? + +echo \$EXIT_CODE > $JOBDIR/cmd.exit $POST_CMD +exit \$EXIT_CODE + HERE echo $job_script_name