From aaae10d3e28a1398abfd9b0aa473b5b3386c54e0 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 8 Oct 2015 15:51:46 +0200 Subject: [PATCH] oops that wouldn't have worked --- local/bin/bluetooth.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/local/bin/bluetooth.sh b/local/bin/bluetooth.sh index 32d84bf..a0242a9 100755 --- a/local/bin/bluetooth.sh +++ b/local/bin/bluetooth.sh @@ -7,9 +7,12 @@ zeusplay 60:E3:27:09:12:DE HERE )" -command="connect ${mac#* }" +command="$(cat < /dev/null ; fi -cat "$command" <(echo "quit") \ - | bluetoothctl > /dev/null 2>&1 +echo "$command" | bluetoothctl > /dev/null 2>&1