Skip to content

Commit

Permalink
allow PATH injection
Browse files Browse the repository at this point in the history
  • Loading branch information
aakropotkin committed Dec 31, 2023
1 parent 2a12d68 commit 24e5920
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sh-scripts/ccjs/main.bash
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ usage() {
: "${JQ:=jq}";
: "${REALPATH:=realpath}";
: "${MKTEMP:=mktemp}";
# @END_INJECT_UTILS@

# @BEGIN_INJECT_PATH@
PATH="${PATH:+$PATH:}${BASH_SOURCE[0]%/*}";
if [[ -d "${BASH_SOURCE[0]%/*}/../libexec" ]]; then
PATH="$PATH:${BASH_SOURCE[0]%/*}/../libexec";
fi
export PATH;
# @END_INJECT_PATH@


# ---------------------------------------------------------------------------- #
Expand Down

0 comments on commit 24e5920

Please sign in to comment.