This commit is contained in:
Dax T. Games 2023-09-22 17:15:23 -04:00
parent 94ea2da567
commit 7c04ee9f6a

8
vendor/cmder_exinit vendored
View File

@ -26,13 +26,13 @@ function runProfiled {
unset profile_d_scripts unset profile_d_scripts
pushd "${1}" >/dev/null pushd "${1}" >/dev/null
if [ ! "x${ZSH_VERSION}" = "x" ]; then if [ -n "${ZSH_VERSION}" ]; then
profile_d_scripts=$(ls *.zsh 2>/dev/null) profile_d_scripts=$(ls *.zsh 2>/dev/null)
elif [ ! "x${BASH_VERSION}" = "x" ]; then elif [ -n "${BASH_VERSION}" ]; then
profile_d_scripts=$(ls *.sh 2>/dev/null) profile_d_scripts=$(ls *.sh 2>/dev/null)
fi fi
if [ ! "x${profile_d_scripts}" = "x" ] ; then if [ -n "${profile_d_scripts}" ] ; then
for x in ${profile_d_scripts} ; do for x in ${profile_d_scripts} ; do
. "${1}/${x}" . "${1}/${x}"
done done
@ -52,7 +52,7 @@ elif [ "$CMDER_ROOT" != "" ] ; then
case "$CMDER_ROOT" in *\\*) CMDER_ROOT="$(cygpath -u "$CMDER_ROOT")";; esac case "$CMDER_ROOT" in *\\*) CMDER_ROOT="$(cygpath -u "$CMDER_ROOT")";; esac
fi fi
if [ ! "$CMDER_ROOT" = "" ] ; then if [ -n "$CMDER_ROOT" ] ; then
# Remove any trailing '/' # Remove any trailing '/'
CMDER_ROOT=$(echo $CMDER_ROOT | sed 's:/*$::') CMDER_ROOT=$(echo $CMDER_ROOT | sed 's:/*$::')