Revision 10048
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/local.sh | ||
---|---|---|
14 | 14 |
bin_dir="$root_dir"/bin |
15 | 15 |
bin_dir_abs="$(realpath "$bin_dir")" || return |
16 | 16 |
|
17 |
export PATH="$bin_dir_abs:$PATH" |
|
17 |
: "${PATH_add=1}" |
|
18 |
if test "$PATH_add"; then export PATH="$bin_dir_abs:$PATH"; fi |
|
18 | 19 |
|
19 | 20 |
#### make |
20 | 21 |
|
Also available in: Unified diff
lib/sh/local.sh: added PATH_add= flag to allow turning off the addition of $bin_dir_abs to the PATH. this is useful for wrapper scripts that should not alter the PATH passed to their invoked command.