HADOOP-11653. shellprofiles should require .sh extension (Brahma Reddy Battula via aw)

This commit is contained in:
Allen Wittenauer 2015-03-06 13:54:11 -08:00
parent d1abc5d4fc
commit 01bfe6f05b
6 changed files with 5 additions and 2 deletions

View File

@ -414,6 +414,9 @@ Trunk (Unreleased)
HADOOP-11602. Fix toUpperCase/toLowerCase to use Locale.ENGLISH. (ozawa)
HADOOP-11653. shellprofiles should require .sh extension
(Brahma Reddy Battula via aw)
OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -162,13 +162,13 @@ function hadoop_import_shellprofiles
local files2
if [[ -d "${HADOOP_LIBEXEC_DIR}/shellprofile.d" ]]; then
files1=(${HADOOP_LIBEXEC_DIR}/shellprofile.d/*)
files1=(${HADOOP_LIBEXEC_DIR}/shellprofile.d/*.sh)
else
hadoop_error "WARNING: ${HADOOP_LIBEXEC_DIR}/shellprofile.d doesn't exist. Functionality may not work."
fi
if [[ -d "${HADOOP_CONF_DIR}/shellprofile.d" ]]; then
files2=(${HADOOP_CONF_DIR}/shellprofile.d/*)
files2=(${HADOOP_CONF_DIR}/shellprofile.d/*.sh)
fi
for i in "${files1[@]}" "${files2[@]}"