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,6 +1,5 @@
BASE_DIR=$(realpath $(dirname $0))
pushd $BASE_DIR > /dev/null
cd $BASE_DIR
PIDFILE=riot.pid
kill $(cat $PIDFILE)
rm $PIDFILE
popd > /dev/null