Skip to content

Commit

Permalink
Merge pull request #2310 from matthewrmshin/job-sh-path-to-cylc
Browse files Browse the repository at this point in the history
job.sh: ensure cylc command is in PATH
  • Loading branch information
dvalters committed Jun 1, 2017
2 parents f76e864 + b5f4708 commit 7162266
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cylc/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ cylc__job__main() {
break
fi
done
# Ensure that the "cylc" command is in PATH. It may not be set up correctly
# in Prelude above, and also not inherited from the job submit environment.
if ! which cylc 1>'/dev/null' 2>&1; then
PATH="${CYLC_DIR}/bin:${PATH}"
fi
# Init-Script
cylc__job__run_inst_func 'global_init_script'
cylc__job__run_inst_func 'init_script'
Expand Down

0 comments on commit 7162266

Please sign in to comment.