HADOOP-11653. shellprofiles should require .sh extension (Brahma Reddy Battula via aw)
This commit is contained in:
parent
d1abc5d4fc
commit
01bfe6f05b
@ -414,6 +414,9 @@ Trunk (Unreleased)
|
|||||||
|
|
||||||
HADOOP-11602. Fix toUpperCase/toLowerCase to use Locale.ENGLISH. (ozawa)
|
HADOOP-11602. Fix toUpperCase/toLowerCase to use Locale.ENGLISH. (ozawa)
|
||||||
|
|
||||||
|
HADOOP-11653. shellprofiles should require .sh extension
|
||||||
|
(Brahma Reddy Battula via aw)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
||||||
|
@ -162,13 +162,13 @@ function hadoop_import_shellprofiles
|
|||||||
local files2
|
local files2
|
||||||
|
|
||||||
if [[ -d "${HADOOP_LIBEXEC_DIR}/shellprofile.d" ]]; then
|
if [[ -d "${HADOOP_LIBEXEC_DIR}/shellprofile.d" ]]; then
|
||||||
files1=(${HADOOP_LIBEXEC_DIR}/shellprofile.d/*)
|
files1=(${HADOOP_LIBEXEC_DIR}/shellprofile.d/*.sh)
|
||||||
else
|
else
|
||||||
hadoop_error "WARNING: ${HADOOP_LIBEXEC_DIR}/shellprofile.d doesn't exist. Functionality may not work."
|
hadoop_error "WARNING: ${HADOOP_LIBEXEC_DIR}/shellprofile.d doesn't exist. Functionality may not work."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d "${HADOOP_CONF_DIR}/shellprofile.d" ]]; then
|
if [[ -d "${HADOOP_CONF_DIR}/shellprofile.d" ]]; then
|
||||||
files2=(${HADOOP_CONF_DIR}/shellprofile.d/*)
|
files2=(${HADOOP_CONF_DIR}/shellprofile.d/*.sh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in "${files1[@]}" "${files2[@]}"
|
for i in "${files1[@]}" "${files2[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user