silenced bash profile.d when profile.d is empty

This commit is contained in:
Dax T. Games
2016-03-06 15:05:40 -06:00
parent df768f3c5e
commit 722f8b7745
2 changed files with 3 additions and 3 deletions

2
vendor/cmder.sh vendored
View File

@ -44,7 +44,7 @@ fi
if [ -d "${CMDER_ROOT}/config/profile.d" ] ; then
unset profile_d_scripts
pushd ${CMDER_ROOT}/config/profile.d >/dev/null
profile_d_scripts=$(ls ${CMDER_ROOT}/config/profile.d/*.sh) 2>/dev/null
profile_d_scripts=$(ls ${CMDER_ROOT}/config/profile.d/*.sh 2>/dev/null)
if [ ! "x${profile_d_scripts}" = "x" ] ; then
for x in ${profile_d_scripts} ; do