install ComplexHttpServer regardless of whether riot is already installed

This commit is contained in:
Bruno Windels 2019-04-05 16:15:38 +02:00
parent 58e6d1bfd3
commit cfff4a998d

View file

@ -2,12 +2,6 @@
set -e set -e
RIOT_BRANCH=develop RIOT_BRANCH=develop
BASE_DIR=$(cd $(dirname $0) && pwd)
if [ -d $BASE_DIR/riot-web ]; then
echo "riot is already installed"
exit
fi
cd $BASE_DIR cd $BASE_DIR
# Install ComplexHttpServer (a drop in replacement for Python's SimpleHttpServer # Install ComplexHttpServer (a drop in replacement for Python's SimpleHttpServer
# but with support for multiple threads) into a virtualenv. # but with support for multiple threads) into a virtualenv.
@ -26,6 +20,12 @@ cd $BASE_DIR
deactivate deactivate
) )
BASE_DIR=$(cd $(dirname $0) && pwd)
if [ -d $BASE_DIR/riot-web ]; then
echo "riot is already installed"
exit
fi
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
unzip -q riot.zip unzip -q riot.zip
rm riot.zip rm riot.zip