On the command line, if I type
adb -s "" shell
I get a shell, but if I try to do this in bash:
#!/bin/bash
ADB_ID=""
adb -s ${ADB_ID} shell
I get an error. I understand that it's not passing in any content for ${ADB_ID}. I've tried escaping the quotes, which results in it looking for the device named "", which is incorrect. I've also tried using single quotes and single escaped quotes, which are both wrong. How can I pass the command line equivalent in my bash script?