mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29:08 +08:00
silenced bash profile.d when profile.d is empty
This commit is contained in:
parent
df768f3c5e
commit
722f8b7745
2
vendor/cmder.sh
vendored
2
vendor/cmder.sh
vendored
@ -44,7 +44,7 @@ fi
|
|||||||
if [ -d "${CMDER_ROOT}/config/profile.d" ] ; then
|
if [ -d "${CMDER_ROOT}/config/profile.d" ] ; then
|
||||||
unset profile_d_scripts
|
unset profile_d_scripts
|
||||||
pushd ${CMDER_ROOT}/config/profile.d >/dev/null
|
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
|
if [ ! "x${profile_d_scripts}" = "x" ] ; then
|
||||||
for x in ${profile_d_scripts} ; do
|
for x in ${profile_d_scripts} ; do
|
||||||
|
4
vendor/cmder_exinit
vendored
4
vendor/cmder_exinit
vendored
@ -58,9 +58,9 @@ if [ ! "$CMDER_ROOT" = "" ] ; then
|
|||||||
unset profile_d_scripts
|
unset profile_d_scripts
|
||||||
pushd ${CMDER_ROOT}/config/profile.d >/dev/null
|
pushd ${CMDER_ROOT}/config/profile.d >/dev/null
|
||||||
if [ ! "x${ZSH_VERSION}" = "x" ]; then
|
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
|
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
|
fi
|
||||||
|
|
||||||
if [ ! "x${profile_d_scripts}" = "x" ] ; then
|
if [ ! "x${profile_d_scripts}" = "x" ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user