Skip to content

Commit 5a440b0

Browse files
committed
fix default for VIRTUALENVWRAPPER_WORKON_CD
Change-Id: I307e01fd333351795418f759f6b99b656c58ec33
1 parent da01a8c commit 5a440b0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

virtualenvwrapper.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ fi
8080

8181
# Let the user tell us they never want to cd to projects
8282
# automatically.
83-
if [ "$VIRTUALENVWRAPPER_WORKON_CD" = "" ]
84-
then
85-
export VIRTUALENVWRAPPER_WORKON_CD=1
86-
fi
83+
export VIRTUALENVWRAPPER_WORKON_CD=${VIRTUALENVWRAPPER_WORKON_CD:-1}
8784

8885
# Remember where we are running from.
8986
if [ -z "$VIRTUALENVWRAPPER_SCRIPT" ]

0 commit comments

Comments
 (0)