From 722f8b77453d4cead391e1ccbbaa069b3e9a8b92 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Sun, 6 Mar 2016 15:05:40 -0600 Subject: [PATCH] silenced bash profile.d when profile.d is empty --- vendor/cmder.sh | 2 +- vendor/cmder_exinit | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/cmder.sh b/vendor/cmder.sh index 2666f58..4fac0be 100644 --- a/vendor/cmder.sh +++ b/vendor/cmder.sh @@ -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 diff --git a/vendor/cmder_exinit b/vendor/cmder_exinit index 6c29423..7e83d64 100644 --- a/vendor/cmder_exinit +++ b/vendor/cmder_exinit @@ -58,9 +58,9 @@ if [ ! "$CMDER_ROOT" = "" ] ; then unset profile_d_scripts pushd ${CMDER_ROOT}/config/profile.d >/dev/null if [ ! "x${ZSH_VERSION}" = "x" ]; then - profile_d_scripts=$(ls ${CMDER_ROOT}/config/profile.d/*.zsh) 2>/dev/null + profile_d_scripts=$(ls ${CMDER_ROOT}/config/profile.d/*.zsh 2>/dev/null) elif [ ! "x${BASH_VERSION}" = "x" ]; then - 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) fi if [ ! "x${profile_d_scripts}" = "x" ] ; then