I have a simple script, but for some reason it fails when running the command as a variable. Any ideas as to why? (I am trying to change device setting of pipewire with a script)
cmd2="pactl set-card-profile 'bluez_card.B8_F8_BE_79_40_C0' 'headset-head-unit-msbc'"
$cmd2
#Command above Fails with "Failure: No such entity"
pactl set-card-profile 'bluez_card.B8_F8_BE_79_40_C0' 'headset-head-unit-msbc'
#command above works fine. (if I modify the bluez to blue99 it fails as cmd2 did)
Don't know why this worked.. but removing the ' fixed it..