From 5ad78e89762840fa1a09b7d897e9ed6f286b06ae Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Sun, 31 Jan 2016 00:15:36 +0100 Subject: [PATCH] should not flash a terminal when nothing is selected --- local/bin/abduco_list | 4 +++- local/bin/abduco_run | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/local/bin/abduco_list b/local/bin/abduco_list index e9297da..ca28bc0 100755 --- a/local/bin/abduco_list +++ b/local/bin/abduco_list @@ -1,3 +1,5 @@ #!/bin/bash session="$(abduco | tail -n +2 | cut -f3 | dmenu)" -urxvtc -e abduco -a "$session" +if [ ! -z "$session" ]; then + urxvtc -e abduco -a "$session" +fi diff --git a/local/bin/abduco_run b/local/bin/abduco_run index 245ded6..6c054ca 100755 --- a/local/bin/abduco_run +++ b/local/bin/abduco_run @@ -1,3 +1,5 @@ #!/bin/bash command="$(dmenu_path | dmenu)" -urxvtc -e abduco -A "$command" $command +if [ ! -z "$command" ]; then + urxvtc -e abduco -A "$command" $command +fi