tkill only if status found running - tomb - the crypto undertaker (HTM) git clone git://parazyd.org/tomb.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 7d535e7491009cdb47dcbf61cdc016261941c972 (DIR) parent 85b01ddbcfb297f6236ad4b9c95c6fee22bbe8bd (HTM) Author: Jaromil <jaromil@dyne.org> Date: Sun, 15 May 2011 20:12:15 +0200 kill only if status found running Diffstat: M src/tomb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- (DIR) diff --git a/src/tomb b/src/tomb t@@ -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