From bc88775d0e23daa111f67aa6d705d629228c6498 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 1 Jul 2019 07:39:32 +0200 Subject: [PATCH] When PATH is defined, only locations from variable --- include/binaries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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