Properly source also on ubuntu

This commit is contained in:
Michael Rodler 2016-06-02 15:03:17 +02:00
parent abf6c16250
commit 21876d00d7

View file

@ -23,7 +23,8 @@ if [[ ! -d "$WORKON_HOME" ]]; then
fi
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source $(which virtualenvwrapper.sh)
source /etc/bash_completion.d/virtualenvwrapper \
|| source $(which virtualenvwrapper.sh)
if ! workon "$CTF_TOOLS_VE" 2>&1 1>/dev/null; then
echo "#### Creating python#PY_VERSION virtualenv '$CTF_TOOLS_VE' ####" >&2