From 3dbb35c5e58a7882764bce335df966dc16f06790 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 9 Jun 2020 18:57:47 +0200 Subject: [PATCH] fix first action and last paired device being listed as one option --- bt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt b/bt index b659b66..47cf5c4 100755 --- a/bt +++ b/bt @@ -31,7 +31,7 @@ disp_devices="$( echo "$paired_devices" | grep -vf "$BLACKLIST" )" #Don't print empty device list, removes unnecessary empty choice in dmenu [ "$disp_devices" = "" ] && choice=$( echo "$actions" | dmenu -i -p 'What BT action would you like to perform:' ) -[ "$disp_devices" != "" ] && choice=$( echo "$disp_devices" "$actions" | dmenu -i -p 'What BT action would you like to perform:' ) +[ "$disp_devices" != "" ] && choice=$( ( echo "$disp_devices" && echo "$actions" ) | dmenu -i -p 'What BT action would you like to perform:' ) cleanup(){ bluetoothctl scan off