no need for push/popd in sub-shell

This commit is contained in:
Bruno Windels 2018-07-27 14:10:19 +02:00
parent 96374f4e54
commit 5e1517eb4d
6 changed files with 10 additions and 21 deletions

View file

@ -1,10 +1,9 @@
PORT=8080
echo "running riot on http://localhost:$PORT..."
BASE_DIR=$(realpath $(dirname $0))
pushd $BASE_DIR > /dev/null
cd $BASE_DIR/
pushd riot-web/webapp/ > /dev/null
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
PID=$!
popd > /dev/null
echo $PID > riot.pid
popd > /dev/null