Skip to content

Commit 7c04ee9

Browse files
committed
fixes
1 parent 94ea2da commit 7c04ee9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vendor/cmder_exinit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
5353
fi
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

0 commit comments

Comments
 (0)