no need for push/popd in sub-shell
This commit is contained in:
parent
96374f4e54
commit
5e1517eb4d
6 changed files with 10 additions and 21 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue