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