tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 7d535e7491009cdb47dcbf61cdc016261941c972
parent 85b01ddbcfb297f6236ad4b9c95c6fee22bbe8bd
Author: Jaromil <jaromil@dyne.org>
Date:   Sun, 15 May 2011 20:12:15 +0200

kill only if status found running

Diffstat:
Msrc/tomb | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/tomb b/src/tomb @@ -837,7 +837,9 @@ umount_tomb() { # this makes the widget disappear when closing tomb from cli awkmapper=`sed 's:\/:\\\/:g' <<< $mapper` statustray_pid=`ps ax | awk "/tomb-status $awkmapper/"' {print $1} '` - kill ${statustray_pid} + if [ ${statustray_pid} ]; then + kill ${statustray_pid} + fi notice "Tomb $tombname closed: your bones will rest in peace." return 0