The demo deletes its virtualenv if something has gone wrong during an installation

This commit is contained in:
Éloi Rivard 2021-04-09 18:49:08 +02:00
parent cc47c84fdb
commit 6e909c7de2

View file

@ -9,9 +9,11 @@ fi
if ! test -d "$DIR/env"; then if ! test -d "$DIR/env"; then
virtualenv "$DIR/env" {
$DIR/env/bin/pip install --editable "$DIR/.." virtualenv "$DIR/env" &&
$DIR/env/bin/pip install honcho requests slapd $DIR/env/bin/pip install --editable "$DIR/.." &&
$DIR/env/bin/pip install honcho requests slapd
} || rm --recursive --force "$DIR/env"
fi fi
env "PWD=$DIR" $DIR/env/bin/honcho start env "PWD=$DIR" $DIR/env/bin/honcho start