Skip to content

Commit

Permalink
Undo shellcheck change in job.sh (trap needs spaced string values)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno P. Kinoshita committed Apr 8, 2019
1 parent 05c5112 commit eabbcbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cylc/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ cylc__job__main() {
# Send task succeeded message
wait "${CYLC_TASK_MESSAGE_STARTED_PID}" 2>'/dev/null' || true
cylc message -- "${CYLC_SUITE_NAME}" "${CYLC_TASK_JOB}" 'succeeded' || true
trap '' "${CYLC_VACATION_SIGNALS:-}" "${CYLC_FAIL_SIGNALS}"
trap '' ${CYLC_VACATION_SIGNALS:-} ${CYLC_FAIL_SIGNALS}
# Execute success exit script
cylc__job__run_inst_func 'exit_script'
exit 0
Expand Down Expand Up @@ -186,7 +186,7 @@ cylc__job_finish_err() {
typeset run_err_script="$2"
shift 2
typeset signal_name=
trap '' "${CYLC_VACATION_SIGNALS:-}" "${CYLC_FAIL_SIGNALS}"
trap '' ${CYLC_VACATION_SIGNALS:-} ${CYLC_FAIL_SIGNALS}
if [[ -n "${CYLC_TASK_MESSAGE_STARTED_PID:-}" ]]; then
wait "${CYLC_TASK_MESSAGE_STARTED_PID}" 2>'/dev/null' || true
fi
Expand Down

0 comments on commit eabbcbb

Please sign in to comment.