File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,11 @@ export VIRTUALENVWRAPPER_WORKON_CD=${VIRTUALENVWRAPPER_WORKON_CD:-1}
96
96
# Remember where we are running from.
97
97
if [ -z " ${VIRTUALENVWRAPPER_SCRIPT:- } " ]
98
98
then
99
- if [ -n " $BASH " ]
99
+ if [ -n " ${BASH_SOURCE :- } " ]
100
100
then
101
101
export VIRTUALENVWRAPPER_SCRIPT=" $BASH_SOURCE "
102
- elif [ -n " $ZSH_VERSION " ]
103
- then
104
- export VIRTUALENVWRAPPER_SCRIPT=" $0 "
105
102
else
106
- export VIRTUALENVWRAPPER_SCRIPT=" ${.sh.file} "
103
+ export VIRTUALENVWRAPPER_SCRIPT=" $0 "
107
104
fi
108
105
fi
109
106
@@ -430,7 +427,7 @@ function mkvirtualenv {
430
427
i=0
431
428
tst=" -lt"
432
429
fi
433
- while [ $i $tst $# ]
430
+ while test $i $tst $#
434
431
do
435
432
a=" ${in_args[$i]} "
436
433
# echo "arg $i : $a"
@@ -712,7 +709,7 @@ function workon {
712
709
tst=" -lt"
713
710
fi
714
711
typeset cd_after_activate=$VIRTUALENVWRAPPER_WORKON_CD
715
- while [ $i $tst $# ]
712
+ while test $i $tst $#
716
713
do
717
714
a=" ${in_args[$i]} "
718
715
case " $a " in
@@ -1111,7 +1108,7 @@ function mkproject {
1111
1108
i=0
1112
1109
tst=" -lt"
1113
1110
fi
1114
- while [ $i $tst $# ]
1111
+ while test $i $tst $#
1115
1112
do
1116
1113
a=" ${in_args[$i]} "
1117
1114
case " $a " in
@@ -1218,7 +1215,7 @@ function mktmpenv {
1218
1215
tst=" -lt"
1219
1216
fi
1220
1217
typeset cd_after_activate=$VIRTUALENVWRAPPER_WORKON_CD
1221
- while [ $i $tst $# ]
1218
+ while test $i $tst $#
1222
1219
do
1223
1220
a=" ${in_args[$i]} "
1224
1221
case " $a " in
You can’t perform that action at this time.
0 commit comments