fix: Remove bad use of test in bluetooth script
Potentially the stupidest error I have ever made.
This commit is contained in:
parent
8d40db141f
commit
6a288c6d0a
|
@ -80,7 +80,7 @@ with lib; {
|
|||
|
||||
if ${test} "$remaining_connection_attempts" -ne 0; then
|
||||
while :; do
|
||||
sink_name="$(${pactl} --format=json list short sinks | ${jq} --exit-status ".[].name | select(${test}(\"^bluez\"))" -r)" && break
|
||||
sink_name="$(${pactl} --format=json list short sinks | ${jq} --exit-status ".[].name | select(test(\"^bluez\"))" -r)" && break
|
||||
done
|
||||
${pactl} set-default-sink "$sink_name"
|
||||
|
||||
|
@ -89,7 +89,7 @@ with lib; {
|
|||
${pactl} set-sink-volume "$sink_name" 0
|
||||
${pactl} set-sink-mute "$sink_name" 0
|
||||
fi
|
||||
elif sink_name="$(${pactl} --format=json list short sinks | ${jq} --exit-status ".[].name | select(${test}(\"^bluez\"))" -r)"; then
|
||||
elif sink_name="$(${pactl} --format=json list short sinks | ${jq} --exit-status ".[].name | select(test(\"^bluez\"))" -r)"; then
|
||||
${pactl} set-default-sink "$sink_name"
|
||||
fi
|
||||
'')
|
||||
|
|
Loading…
Reference in New Issue