From: James Bunton Date: Tue, 12 Apr 2011 10:11:03 +0000 (+1000) Subject: Fixed small bug in mediawrap.sh X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/9ee6c5bed36500ec39ee775e0e549b09d4c49b09 Fixed small bug in mediawrap.sh --- diff --git a/scripts/mediawrap.sh b/scripts/mediawrap.sh index 3b516cc..764c8bf 100755 --- a/scripts/mediawrap.sh +++ b/scripts/mediawrap.sh @@ -10,6 +10,7 @@ for i in $(seq 6); do break fi if [ "$(ps -o cmd= -p "$(cat "$PIDFILE")" | wc -l)" -eq 0 ]; then + rm -f "$PIDFILE" break fi sleep 0.5