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
virtualenv "$DIR/env"
$DIR/env/bin/pip install --editable "$DIR/.."
$DIR/env/bin/pip install honcho requests slapd
{
virtualenv "$DIR/env" &&
$DIR/env/bin/pip install --editable "$DIR/.." &&
$DIR/env/bin/pip install honcho requests slapd
} || rm --recursive --force "$DIR/env"
fi
env "PWD=$DIR" $DIR/env/bin/honcho start