forked from Github-Mirrors/canaille
The demo deletes its virtualenv if something has gone wrong during an installation
This commit is contained in:
parent
cc47c84fdb
commit
6e909c7de2
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue