aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-04-09 10:23:10 -0700
committerMark Ferrell <major@homeonderanged.org>2014-04-09 10:23:10 -0700
commitb1954e481b6412c673458df120717df281369b3e (patch)
tree35c7c3873d57d9eaae74a02690302e45ffefc241 /libexec
parent2fa93efb7bfad54607ce911d5f846148ac5442fc (diff)
Do not process non-existant directories from the PATH
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/build-help1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/build-help b/libexec/build-help
index 926cd5c..8bce924 100755
--- a/libexec/build-help
+++ b/libexec/build-help
@@ -40,6 +40,7 @@ build_commands()
IFS=':'
set -- ${PATH}
for dir; do
+ test -d "${dir}" || continue
for cmd in $(cd "${dir}" && echo build-*); do
test -e "${dir}/${cmd}" || continue
BUILDER_COMMANDS="${BUILDER_COMMANDS} ${cmd#build-}"