Skip to content

Commit 30d0d34

Browse files
committed
Fixed exit code
1 parent 69fa3e0 commit 30d0d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psij/executors/batch/pbs/pbspro.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ _PSIJ_JOB_EC=$?
7878
{{> cleanup}}
7979

8080
{{!we redirect to a file tied to the native ID so that we can reach the file with attach().}}
81-
echo "$?" > "{{psij.script_dir}}/$PBS_JOBID.ec"
81+
echo $_PSIJ_JOB_EC > "{{psij.script_dir}}/$PBS_JOBID.ec"
8282
echo "_PSIJ_SCRIPT_DONE"

0 commit comments

Comments
 (0)