From 32f384d98de86c4a5dfccb2adcd4f617377f856d Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 2 Feb 2016 08:52:32 +0100 Subject: [PATCH] guard on typos --- local/bin/abduco_list | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/local/bin/abduco_list b/local/bin/abduco_list index ca28bc0..31dc0c0 100755 --- a/local/bin/abduco_list +++ b/local/bin/abduco_list @@ -1,5 +1,7 @@ #!/bin/bash session="$(abduco | tail -n +2 | cut -f3 | dmenu)" if [ ! -z "$session" ]; then - urxvtc -e abduco -a "$session" + if abduco | grep -q "$session"; then + urxvtc -e abduco -a "$session" + fi fi