Skip to content

Commit

Permalink
updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranzafar committed Feb 23, 2021
1 parent 2f34b9d commit d184008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play-azaan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
BLUETOOTH_MAC=$(hcitool con | grep -o "[[:xdigit:]:]\{11,17\}")

if [ -z "$BLUETOOTH_MAC" ]; then
BLUETOOTH_MAC=$(grep '^defaults.bluealsa.device' ~/.asoundrc | awk '{gsub(/"/, "", $2); print $2}')
BLUETOOTH_MAC=$(grep "^defaults.bluealsa.device" ~/.asoundrc | grep -o "[[:xdigit:]:]\{11,17\}")

if [ -z "$BLUETOOTH_MAC" ]; then
echo "Can't connect to bluetooth"
Expand Down

0 comments on commit d184008

Please sign in to comment.