mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 06:33:56 +02:00
This reverts commit 2909107554
.
This commit is contained in:
parent
fe7755e6a0
commit
3c30074a7f
1 changed files with 6 additions and 4 deletions
10
algo
10
algo
|
@ -2,17 +2,19 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
|
if [ -z ${VIRTUAL_ENV+x} ]
|
||||||
if [ -f "$ACTIVATE_SCRIPT" ]
|
|
||||||
then
|
then
|
||||||
|
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
|
||||||
|
if [ -f "$ACTIVATE_SCRIPT" ]
|
||||||
|
then
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source "$ACTIVATE_SCRIPT"
|
source "$ACTIVATE_SCRIPT"
|
||||||
else
|
else
|
||||||
echo "$ACTIVATE_SCRIPT not found. Did you follow documentation to install dependencies?"
|
echo "$ACTIVATE_SCRIPT not found. Did you follow documentation to install dependencies?"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
update-users) PLAYBOOK=users.yml; ARGS=( "${@:2}" -t update-users ) ;;
|
update-users) PLAYBOOK=users.yml; ARGS=( "${@:2}" -t update-users ) ;;
|
||||||
*) PLAYBOOK=main.yml; ARGS=( "${@}" ) ;;
|
*) PLAYBOOK=main.yml; ARGS=( "${@}" ) ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue