File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ function runProfiled {
2626 unset profile_d_scripts
2727 pushd "${1}" >/dev/null
2828
29- if [ ! "x ${ZSH_VERSION}" = "x " ]; then
29+ if [ -n " ${ZSH_VERSION}" ]; then
3030 profile_d_scripts=$(ls *.zsh 2>/dev/null)
31- elif [ ! "x ${BASH_VERSION}" = "x " ]; then
31+ elif [ -n " ${BASH_VERSION}" ]; then
3232 profile_d_scripts=$(ls *.sh 2>/dev/null)
3333 fi
3434
35- if [ ! "x ${profile_d_scripts}" = "x " ] ; then
35+ if [ -n " ${profile_d_scripts}" ] ; then
3636 for x in ${profile_d_scripts} ; do
3737 . "${1}/${x}"
3838 done
@@ -52,7 +52,7 @@ elif [ "$CMDER_ROOT" != "" ] ; then
5252 case "$CMDER_ROOT" in *\\*) CMDER_ROOT="$(cygpath -u "$CMDER_ROOT")";; esac
5353fi
5454
55- if [ ! "$CMDER_ROOT" = " " ] ; then
55+ if [ -n "$CMDER_ROOT" ] ; then
5656 # Remove any trailing '/'
5757 CMDER_ROOT=$(echo $CMDER_ROOT | sed 's:/*$::')
5858
You can’t perform that action at this time.
0 commit comments