diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-01 08:39:32 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-01 08:39:32 +0300 |
commit | bc88775d0e23daa111f67aa6d705d629228c6498 (patch) | |
tree | d48b74df3445baf34b9119303cc0af7145f0e889 /include/binaries | |
parent | 76c3ea0edb43d7977e1085ddba5dfc687e7eb12a (diff) |
When PATH is defined, only locations from variable
Diffstat (limited to 'include/binaries')
-rw-r--r-- | include/binaries | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/binaries b/include/binaries index 201a07ab..c3e5dff9 100644 --- a/include/binaries +++ b/include/binaries @@ -51,7 +51,7 @@ # multiple times, the one first in PATH should be used. if [ ! -z "${PATH}" ]; then PATH_REVERSED=$(echo ${PATH} | awk -F: '{ for (i=NF; i>1; i--) printf("%s ",$i); print $1; }') - BIN_PATHS=$(echo "${PATH_REVERSED} ${BIN_PATHS}" | tr ':' ' ') + BIN_PATHS=$(echo "${PATH_REVERSED}" | tr ':' ' ') fi # First test available locations that may be suspicious or dangerous |