mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +02:00
skip virtualenv check if already activated (#863)
This allows the user to choose their virtualenv method, e.g. [Pipenv](https://docs.pipenv.org/).
This commit is contained in:
parent
e78df40468
commit
f585a416df
1 changed files with 9 additions and 6 deletions
15
algo
15
algo
|
@ -2,13 +2,16 @@
|
|||
|
||||
set -e
|
||||
|
||||
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
|
||||
if [ -f "$ACTIVATE_SCRIPT" ]
|
||||
if [ -z ${VIRTUAL_ENV+x} ]
|
||||
then
|
||||
source $ACTIVATE_SCRIPT
|
||||
else
|
||||
echo "$ACTIVATE_SCRIPT not found. Did you follow documentation to install dependencies?"
|
||||
exit 1
|
||||
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
|
||||
if [ -f "$ACTIVATE_SCRIPT" ]
|
||||
then
|
||||
source $ACTIVATE_SCRIPT
|
||||
else
|
||||
echo "$ACTIVATE_SCRIPT not found. Did you follow documentation to install dependencies?"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
SKIP_TAGS="_null encrypted"
|
||||
|
|
Loading…
Add table
Reference in a new issue